triangular static method
Returns the inverse cummulative distribution of the coordinate x
of
a two-dimensional search space with triangular geometry.
The search space:
- Extends from
xMin
toxMax
along the horizontal axis. - Has zero extent in y-direction if the first coordinate is
xMin
. - Extends from
yMin
toyMax
if the first corrdinate isxMax
. - p is a probability with value 0...1.
Implementation
static num triangular(num p, num xMin, num xMax) =>
xMin + (xMax - xMin) * sqrt(p);