public class NakagamiGen extends RandomVariateGen
NakagamiDist of package
probdist.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDistribution, getStream, nextArrayOfDouble, nextDouble, setStreampublic NakagamiGen(RandomStream s, double a, double lambda, double c)
public NakagamiGen(RandomStream s, NakagamiDist dist)
public static double nextDouble(RandomStream s, double a, double lambda, double c)
s - the random streama - the location parameterlambda - the scale parameterc - the shape parameterpublic double getA()
public double getLambda()
public double getC()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.