F(x) = 1 - exp(-x^2/(2 sigma^2)), x >= 0.
Density, distribution function, quantile and draws by inversion of the
morie Philox uniforms (identical in the Python arm).
Usage
RayleighDist(x = NULL, sigma = 1, p = NULL, n = 0, seed = 0)
Arguments
- x
Evaluation points.
- sigma
Parameter.
- p
Probabilities for the quantile function.
- n
Number of random draws.
- seed
Philox seed.
Value
list(pdf, logpdf, cdf, quantile, random).
References
Rayleigh, Lord (1880). On the resultant of a large number of vibrations. Phil. Mag. 10, 73-78.
Examples
RayleighDist(0.5)$cdf
#> [1] 0.1175031