|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.randvar.RandomVariateGen umontreal.iro.lecuyer.randvar.HalfNormalGen
public class HalfNormalGen
This class implements methods for generating random variates from the half-normal distribution with parameters μ and σ > 0. Its density is
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 half-normal distribution with parameters μ = mu and σ = sigma, using stream s. |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStream, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HalfNormalGen(RandomStream s, double mu, double sigma)
public HalfNormalGen(RandomStream s, HalfNormalDist dist)
Method Detail |
---|
public static double nextDouble(RandomStream s, double mu, double sigma)
s
- the random streammu
- the parameter musigma
- the parameter sigma
public double getMu()
public double getSigma()
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |