Class InverseTransformSamplingExpRNG
java.lang.Object
dev.nm.stat.random.rng.univariate.InverseTransformSampling
dev.nm.stat.random.rng.univariate.exp.InverseTransformSamplingExpRNG
- All Implemented Interfaces:
RandomExpGenerator
,RandomNumberGenerator
,Seedable
public class InverseTransformSamplingExpRNG
extends InverseTransformSampling
implements RandomExpGenerator
This is a pseudo random number generator that samples from the exponential
distribution using the inverse transform sampling method.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a random number generator to sample from the standard exponential distribution using the inverse transform sampling method.InverseTransformSamplingExpRNG
(double lambda) Constructs a random number generator to sample from the exponential distribution using the inverse transform sampling method. -
Method Summary
Methods inherited from class dev.nm.stat.random.rng.univariate.InverseTransformSampling
nextDouble, seed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.nm.stat.random.rng.univariate.RandomNumberGenerator
nextDouble
-
Constructor Details
-
InverseTransformSamplingExpRNG
public InverseTransformSamplingExpRNG(double lambda) Constructs a random number generator to sample from the exponential distribution using the inverse transform sampling method.- Parameters:
lambda
- the rate parameter
-
InverseTransformSamplingExpRNG
public InverseTransformSamplingExpRNG()Constructs a random number generator to sample from the standard exponential distribution using the inverse transform sampling method.
-