public static class RandomDistribution.Default
| Modifier and Type | Method and Description |
|---|---|
kotlin.jvm.functions.Function0<java.lang.Double> |
bates(double n)
returns a function for generating random numbers with a Bates distribution with n independent variables.
|
kotlin.jvm.functions.Function0<java.lang.Double> |
exponential(double lambda)
Returns a function for generating random numbers with an exponential distribution with
the rate lambda; equivalent to time between events in a Poisson process with a mean of 1 / lambda.
For example, exponential(1/40) generates random times between events where, on average, one event
occurs every 40 units of time.
|
kotlin.jvm.functions.Function0<java.lang.Double> |
irwinHall(double n)
Returns a function for generating random numbers with an Irwin–Hall distribution with n independent variables.
|
kotlin.jvm.functions.Function0<java.lang.Double> |
logNormal(double mu,
double sigma)
returns a function for generating random numbers with a log-normal distribution.
The expected value of the random variable’s natural logarithm is mu, with the given
standard deviation sigma. If mu is not specified, it defaults to 0;
if sigma is not specified, it defaults to 1.
|
kotlin.jvm.functions.Function0<java.lang.Double> |
normal(double mu,
double sigma)
Returns a function for generating random numbers with a normal (Gaussian) distribution.
The expected value of the generated numbers is mu, with the given standard deviation sigma.
If mu is not specified, it defaults to 0.0; if sigma is not specified, it defaults to 1.0
|
kotlin.jvm.functions.Function0<java.lang.Double> |
uniform(double min,
double max)
Returns a function for generating random numbers with a uniform distribution.
The minimum allowed value of a returned number is min, and the maximum is max.
If min is not specified, it defaults to 0; if max is not specified, it defaults to 1.
|
public kotlin.jvm.functions.Function0<java.lang.Double> uniform(double min,
double max)
Returns a function for generating random numbers with a uniform distribution. The minimum allowed value of a returned number is min, and the maximum is max. If min is not specified, it defaults to 0; if max is not specified, it defaults to 1.
public kotlin.jvm.functions.Function0<java.lang.Double> bates(double n)
returns a function for generating random numbers with a Bates distribution with n independent variables.
public kotlin.jvm.functions.Function0<java.lang.Double> logNormal(double mu,
double sigma)
returns a function for generating random numbers with a log-normal distribution. The expected value of the random variable’s natural logarithm is mu, with the given standard deviation sigma. If mu is not specified, it defaults to 0; if sigma is not specified, it defaults to 1.
public kotlin.jvm.functions.Function0<java.lang.Double> exponential(double lambda)
Returns a function for generating random numbers with an exponential distribution with the rate lambda; equivalent to time between events in a Poisson process with a mean of 1 / lambda. For example, exponential(1/40) generates random times between events where, on average, one event occurs every 40 units of time.
public kotlin.jvm.functions.Function0<java.lang.Double> irwinHall(double n)
Returns a function for generating random numbers with an Irwin–Hall distribution with n independent variables.
public kotlin.jvm.functions.Function0<java.lang.Double> normal(double mu,
double sigma)
Returns a function for generating random numbers with a normal (Gaussian) distribution. The expected value of the generated numbers is mu, with the given standard deviation sigma. If mu is not specified, it defaults to 0.0; if sigma is not specified, it defaults to 1.0