public final class ProbabilityDistributions extends Object
Modifier and Type | Field and Description |
---|---|
static Random |
randomGenerator
Random number generator
|
Constructor and Description |
---|
ProbabilityDistributions() |
Modifier and Type | Method and Description |
---|---|
static double |
rndInteger(int a,
int b,
Random rnd)
Random number from Uniform Discrete distribution. over set interval (a, a+1,
..., b-1, b).
|
static int |
rndInteger(Random rnd)
Random integer.
|
static double |
rndNormal(double mean,
double stddev,
Random rnd)
Random number from normal distribution N(mean, stddev).
|
static double |
rndUniformContinuous(Random rnd)
Random number from Uniform Continuous distribution over interval [0, 1).
|
public static Random randomGenerator
public static final double rndUniformContinuous(Random rnd)
rnd
- Random number generator.public static final double rndInteger(int a, int b, Random rnd)
a
- Interval limit - left / lower.b
- Interval limit - right / upper.rnd
- Random number generator.public static final int rndInteger(Random rnd)
rnd
- Random number generator.public static final double rndNormal(double mean, double stddev, Random rnd)
mean
- Mean value.stddev
- Standard deviation.rnd
- Random number generator.