Package org.hipparchus.random
Class ExponentialGenerator
java.lang.Object
org.hipparchus.random.AbstractNonUniformGenerator
org.hipparchus.random.ExponentialGenerator
- All Implemented Interfaces:
NonUniformGenerator
Procedure to generate variates for exponential distribution.
-
Constructor Summary
ConstructorsConstructorDescriptionExponentialGenerator(RandomGenerator random, double lambda) Simple constructor. -
Method Summary
Methods inherited from class org.hipparchus.random.AbstractNonUniformGenerator
nextNormal, nextUniform
-
Constructor Details
-
ExponentialGenerator
Simple constructor.- Parameters:
random- underlying random generatorlambda- rate parameter
-
-
Method Details
-
nextVariate
public double nextVariate()Generate next variate.- Returns:
- next variate
-