public class ExponentialDistribution extends MathDistribution
| Modifier and Type | Field and Description |
|---|---|
private double |
lambda
The lambda.
|
random| Constructor and Description |
|---|
ExponentialDistribution(double lambda)
Creates an exponential distribution with a specified lambda.
|
ExponentialDistribution(double lambda,
RandomPlus random)
Creates an exponential distribution with a specified lambda.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getValue()
Draws a number from the random distribution.
|
public ExponentialDistribution(double lambda)
lambda - The lambda parameter.public ExponentialDistribution(double lambda,
RandomPlus random)
lambda - The lambda parameter.random - The random generator.public double getValue()
MathDistributiongetValue in class MathDistribution