|
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.NakagamiGen
public class NakagamiGen
This class implements random variate generators for the Nakagami
distribution. See the definition in
NakagamiDist
of package
probdist.
Constructor Summary | |
---|---|
NakagamiGen(RandomStream s,
double a,
double lambda,
double c)
Creates a new Nakagami generator with parameters a = a, λ = lambda and c = c, using stream s. |
|
NakagamiGen(RandomStream s,
NakagamiDist dist)
Creates a new generator for the distribution dist, using stream s. |
Method Summary | |
---|---|
double |
getA()
Returns the location parameter a of this object. |
double |
getC()
Returns the shape parameter c of this object. |
double |
getLambda()
Returns the scale parameter λ of this object. |
static double |
nextDouble(RandomStream s,
double a,
double lambda,
double c)
Generates a variate from the Nakagami distribution with parameters a = a, λ = lambda and c = c, 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 NakagamiGen(RandomStream s, double a, double lambda, double c)
public NakagamiGen(RandomStream s, NakagamiDist dist)
Method Detail |
---|
public static double nextDouble(RandomStream s, double a, double lambda, double c)
s
- the random streama
- the location parameterlambda
- the scale parameterc
- the shape parameter
public double getA()
public double getLambda()
public double getC()
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |