public class FoldedNormalGen extends RandomVariateGen
| Constructor and Description |
|---|
FoldedNormalGen(RandomStream s,
double mu,
double sigma)
Creates a new folded normal generator with parameters μ =
mu and σ = sigma, using stream s.
|
FoldedNormalGen(RandomStream s,
FoldedNormalDist dist)
Creates a new generator for the distribution dist,
using stream s.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMu()
Returns the parameter μ of this object.
|
double |
getSigma()
Returns the parameter σ of this object.
|
static double |
nextDouble(RandomStream s,
double mu,
double sigma)
Generates a variate from the folded normal distribution with
parameters μ = mu and σ = sigma,
using stream s.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic FoldedNormalGen(RandomStream s, double mu, double sigma)
public FoldedNormalGen(RandomStream s, FoldedNormalDist dist)
public static double nextDouble(RandomStream s, double mu, double sigma)
s - the random streammu - the parameter musigma - the parameter sigmapublic double getMu()
public double getSigma()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.