rho static method

num rho(
  1. num p,
  2. num rhoMin,
  3. num rhoMax
)

Returns the inverse cummulative distribution of the radius rho of a search space with cylindrical geometry specified by the coordinates [rho, phi, z]. See SearchSpace.

  • rho >= 0.
  • phi takes values in the range 0...2*pi.

Implementation

static num rho(num p, num rhoMin, num rhoMax) =>
    rhoMin + (rhoMax - rhoMin) * sqrt(p);