25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.probdist.*;
43 protected double lambda;
53 setParams(a, lambda, c);
62 setParams(dist.getA(), dist.getLambda(), dist.getC());
106 protected void setParams(
double a,
double lambda,
double c) {
108 throw new IllegalArgumentException(
"lambda <= 0");
110 throw new IllegalArgumentException(
"c <= 0");
112 this.lambda = lambda;
Extends the class ContinuousDistribution for the Nakagami distribution with location parameter ,...
double inverseF(double u)
Returns the inverse distribution function .
static double nextDouble(RandomStream s, double a, double lambda, double c)
Generates a variate from the Nakagami distribution with parameters.
double getLambda()
Returns the scale parameter of this object.
NakagamiGen(RandomStream s, double a, double lambda, double c)
Creates a new Nakagami generator with parameters a,.
double getA()
Returns the location parameter of this object.
NakagamiGen(RandomStream s, NakagamiDist dist)
Creates a new generator for the distribution dist, using stream s.
double getC()
Returns the shape parameter of this object.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...