25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
46 protected double sigma;
63 setParams(dist.getMu(), dist.getSigma());
98 protected void setParams(
double mu,
double sigma) {
100 throw new IllegalArgumentException(
"sigma <= 0");
Extends the class ContinuousDistribution for the half-normal distribution with parameters and .
double inverseF(double u)
Returns the inverse distribution function .
HalfNormalGen(RandomStream s, double mu, double sigma)
Creates a new half-normal generator with parameters mu and sigma, using stream s.
HalfNormalGen(RandomStream s, HalfNormalDist dist)
Creates a new generator for the distribution dist, using stream s.
static double nextDouble(RandomStream s, double mu, double sigma)
Generates a variate from the half-normal distribution with parameters  mu and  sigma,...
double getMu()
Returns the parameter of this object.
double getSigma()
Returns the parameter of this object.
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,...