umontreal.iro.lecuyer.randvar
Class NakagamiGen
- java.lang.Object
-
- umontreal.iro.lecuyer.randvar.RandomVariateGen
-
- umontreal.iro.lecuyer.randvar.NakagamiGen
-
public class NakagamiGen extends RandomVariateGen
This class implements random variate generators for the Nakagami distribution. See the definition inNakagamiDistof package probdist.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetA()Returns the location parameter a of this object.doublegetC()Returns the shape parameter c of this object.doublegetLambda()Returns the scale parameter λ of this object.static doublenextDouble(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
-
-
-
-
Constructor Detail
-
NakagamiGen
public 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
public NakagamiGen(RandomStream s, NakagamiDist dist)
Creates a new generator for the distribution dist, using stream s.
-
-
Method Detail
-
nextDouble
public 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.- Parameters:
s- the random streama- the location parameterlambda- the scale parameterc- the shape parameter- Returns:
- Generates a variate from the Nakagami distribution
-
getA
public double getA()
Returns the location parameter a of this object.- Returns:
- the location parameter mu
-
getLambda
public double getLambda()
Returns the scale parameter λ of this object.- Returns:
- the scale parameter mu
-
getC
public double getC()
Returns the shape parameter c of this object.- Returns:
- the shape parameter mu
-
-
DMelt 3.0 © DataMelt by jWork.ORG