public class RandomExponentialDistribution extends Object
Modifier and Type | Field and Description |
---|---|
private double |
mean |
private Random |
rand |
Constructor and Description |
---|
RandomExponentialDistribution()
Create a new generator of random numbers
with exponential distribution of mean 1.
|
RandomExponentialDistribution(double mean)
Create a new generator of random numbers
with exponential distribution of specified mean.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
double |
nextDouble()
Return a random number with exponential distribution.
|
public RandomExponentialDistribution()
public RandomExponentialDistribution(double mean)
mean
- the mean of the exponential distributionpublic double nextDouble()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses