Class WeibullRNG
java.lang.Object
dev.nm.stat.random.rng.univariate.InverseTransformSampling
dev.nm.stat.random.rng.univariate.WeibullRNG
- All Implemented Interfaces:
RandomNumberGenerator
,Seedable
This random number generator samples from the Weibull distribution using the
inverse transform sampling method.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a random number generator to sample from the Weibull distribution.WeibullRNG
(double lambda, double k) Constructs a random number generator to sample from the Weibull distribution. -
Method Summary
Methods inherited from class dev.nm.stat.random.rng.univariate.InverseTransformSampling
nextDouble, seed
-
Constructor Details
-
WeibullRNG
public WeibullRNG(double lambda, double k) Constructs a random number generator to sample from the Weibull distribution.- Parameters:
lambda
- the scale parameterk
- the shape parameter
-
WeibullRNG
public WeibullRNG()Constructs a random number generator to sample from the Weibull distribution.
-