rayleighv

double rayleighv(double p, double s);

Returns the critical point of the Rayleigh random variable distribution function with scale parameter s associated with probability p.

Parameters:
pCummulative probability for the critical point.
sScale parameter.

Returns:
x such that P(X ≤ x | s) = p

Errors:
NUMERICS_ERROR is raised if s ≤ 0, p ≤ 0, or p ≥ 1

Usage:
double x = rayleighv(.5, 1.5)

Header:
#include "contdist.h"