This class implements random variate generators for the Nakagami distribution. More...
Public Member Functions | |
| NakagamiGen (RandomStream s, double a, double lambda, double c) | |
| Creates a new Nakagami generator with parameters \(a=\) a,. | |
| NakagamiGen (RandomStream s, NakagamiDist dist) | |
| Creates a new generator for the distribution dist, using stream s. | |
| double | getA () |
| Returns the location parameter \(a\) of this object. | |
| double | getLambda () |
| Returns the scale parameter \(\lambda\) of this object. | |
| double | getC () |
| Returns the shape parameter \(c\) of this object. | |
| Public Member Functions inherited from umontreal.ssj.randvar.RandomVariateGen | |
| RandomVariateGen (RandomStream s, Distribution dist) | |
| Creates a new random variate generator from the distribution dist, using stream s. | |
| double | nextDouble () |
| Generates a random number from the continuous distribution contained in this object. | |
| void | nextArrayOfDouble (double[] v, int start, int n) |
| Generates n random numbers from the continuous distribution contained in this object. | |
| double[] | nextArrayOfDouble (int n) |
| Generates n random numbers from the continuous distribution contained in this object, and returns them in a new array of size n. | |
| RandomStream | getStream () |
| Returns the umontreal.ssj.rng.RandomStream used by this generator. | |
| void | setStream (RandomStream stream) |
| Sets the umontreal.ssj.rng.RandomStream used by this generator to stream. | |
| Distribution | getDistribution () |
| Returns the umontreal.ssj.probdist.Distribution used by this generator. | |
| String | toString () |
| Returns a String containing information about the current generator. | |
Static Public Member Functions | |
| static double | nextDouble (RandomStream s, double a, double lambda, double c) |
| Generates a variate from the Nakagami distribution with parameters. | |
This class implements random variate generators for the Nakagami distribution.
See the definition in
umontreal.ssj.probdist.NakagamiDist of package probdist.
<div class="SSJ-bigskip"></div>
Definition at line 40 of file NakagamiGen.java.
| umontreal.ssj.randvar.NakagamiGen.NakagamiGen | ( | RandomStream | s, |
| double | a, | ||
| double | lambda, | ||
| double | c ) |
Creates a new Nakagami generator with parameters \(a=\) a,.
\(\lambda=\) lambda and \(c =\) c, using stream s.
Definition at line 51 of file NakagamiGen.java.
| umontreal.ssj.randvar.NakagamiGen.NakagamiGen | ( | RandomStream | s, |
| NakagamiDist | dist ) |
Creates a new generator for the distribution dist, using stream s.
Definition at line 59 of file NakagamiGen.java.
| double umontreal.ssj.randvar.NakagamiGen.getA | ( | ) |
Returns the location parameter \(a\) of this object.
Definition at line 84 of file NakagamiGen.java.
| double umontreal.ssj.randvar.NakagamiGen.getC | ( | ) |
Returns the shape parameter \(c\) of this object.
Definition at line 102 of file NakagamiGen.java.
| double umontreal.ssj.randvar.NakagamiGen.getLambda | ( | ) |
Returns the scale parameter \(\lambda\) of this object.
Definition at line 93 of file NakagamiGen.java.
|
static |
Generates a variate from the Nakagami distribution with parameters.
\(a=\) a, \(\lambda=\) lambda and \(c =\) c, using stream s.
| s | the random stream |
| a | the location parameter |
| lambda | the scale parameter |
| c | the shape parameter |
Definition at line 75 of file NakagamiGen.java.