Class RayleighRNG
java.lang.Object
dev.nm.stat.random.rng.univariate.InverseTransformSampling
dev.nm.stat.random.rng.univariate.RayleighRNG
- All Implemented Interfaces:
RandomNumberGenerator
,Seedable
This random number generator samples from the Rayleigh distribution using the
inverse transform sampling method.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRayleighRNG
(double sigma) Constructs a random number generator to sample from the Rayleigh distribution. -
Method Summary
Methods inherited from class dev.nm.stat.random.rng.univariate.InverseTransformSampling
nextDouble, seed
-
Constructor Details
-
RayleighRNG
public RayleighRNG(double sigma) Constructs a random number generator to sample from the Rayleigh distribution.- Parameters:
sigma
- the standard deviation
-