|
SSJ V. 2.6.2. |
||||||||
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.LaplaceGen
public class LaplaceGen
This class implements methods for generating random variates from the Laplace distribution. Its density is
The (non-static) nextDouble method simply calls inverseF on the distribution.
Constructor Summary | |
---|---|
LaplaceGen(RandomStream s)
Creates a Laplace random variate generator with parameters μ = 0 and β = 1, using stream s. |
|
LaplaceGen(RandomStream s,
double mu,
double beta)
Creates a Laplace random variate generator with parameters μ = mu and β = beta, using stream s. |
|
LaplaceGen(RandomStream s,
LaplaceDist dist)
Creates a new generator for the Laplace distribution dist and stream s. |
Method Summary | |
---|---|
double |
getBeta()
Returns the parameter β. |
double |
getMu()
Returns the parameter μ. |
static double |
nextDouble(RandomStream s,
double mu,
double beta)
Generates a new variate from the Laplace distribution with parameters μ = mu and β = beta, 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 LaplaceGen(RandomStream s, double mu, double beta)
public LaplaceGen(RandomStream s)
public LaplaceGen(RandomStream s, LaplaceDist dist)
Method Detail |
---|
public static double nextDouble(RandomStream s, double mu, double beta)
public double getMu()
public double getBeta()
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |