public class LaplaceRandomVariable extends AbstractContinuousRandomVariable
A random variable generator for the Laplace distribution.
References:
Constructor and Description |
---|
LaplaceRandomVariable()
Default constructor.
|
LaplaceRandomVariable(double m,
double s)
Create a random variable with the given mean and scale.
|
LaplaceRandomVariable(double m,
double s,
RNG source)
Create a random variable with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
nextRandomVariable()
Access the next random variable from this generator.
|
static double |
nextRandomVariable(double m,
double s,
RNG source)
Access the next random variable using the given generator.
|
public LaplaceRandomVariable()
public LaplaceRandomVariable(double m, double s)
m
- the mean.s
- the scale.public LaplaceRandomVariable(double m, double s, RNG source)
m
- the mean.s
- the scale parameter.source
- the source generator.public static double nextRandomVariable(double m, double s, RNG source)
m
- the mean.s
- the scale parameter.source
- the source generator.public double nextRandomVariable()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics