25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
49 protected double sigma;
66 setParams(dist.getMu(), dist.getSigma());
101 protected void setParams(
double mu,
double sigma) {
103 throw new IllegalArgumentException(
"sigma <= 0");
105 throw new IllegalArgumentException(
"mu < 0");
Extends the class ContinuousDistribution for the folded normal distribution with parameters and .
double inverseF(double u)
Returns the inverse distribution function .
double getSigma()
Returns the parameter of this object.
FoldedNormalGen(RandomStream s, double mu, double sigma)
Creates a new folded normal generator with parameters mu and sigma, using stream s.
static double nextDouble(RandomStream s, double mu, double sigma)
Generates a variate from the folded normal distribution with parameters  mu and  sigma,...
double getMu()
Returns the parameter of this object.
FoldedNormalGen(RandomStream s, FoldedNormalDist dist)
Creates a new generator for the distribution dist, using stream s.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...