SSJ
V. labo.

umontreal.iro.lecuyer.randvar
Class NakagamiGen

java.lang.Object
  extended by umontreal.iro.lecuyer.randvar.RandomVariateGen
      extended by umontreal.iro.lecuyer.randvar.NakagamiGen

public class NakagamiGen
extends RandomVariateGen

NakagamiGen

This class implements random variate generators for the Nakagami distribution. See the definition in umontreal.iro.lecuyer.probdistNakagamiDist of package probdist.


Constructor Summary
NakagamiGen(RandomStream s, double a, double lambda, double c)
          .
NakagamiGen(RandomStream s, NakagamiDist dist)
          .
 
Method Summary
 double getA()
          .
 double getC()
          .
 double getLambda()
          .
static double nextDouble(RandomStream s, double a, double lambda, double c)
          .
 
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

NakagamiGen

public NakagamiGen(RandomStream s,
                   double a,
                   double lambda,
                   double c)
. \begin{tabb}Creates a new Nakagami generator with parameters $a=$\ \texttt{a},
 ...
 ...a =$\ \texttt{lambda} and $c =$\ \texttt{c}, using stream \texttt{s}.
 \end{tabb}


NakagamiGen

public NakagamiGen(RandomStream s,
                   NakagamiDist dist)
. \begin{tabb}Creates a new generator for the distribution \texttt{dist},
 using stream \texttt{s}.
 \end{tabb}

Method Detail

nextDouble

public static double nextDouble(RandomStream s,
                                double a,
                                double lambda,
                                double c)
. \begin{tabb}Generates a variate from the {\em Nakagami\/} distribution with
 par...
 ...a =$\ \texttt{lambda} and $c =$\ \texttt{c}, using stream \texttt{s}.
 \end{tabb}
sthe random stream athe location parameter lambdathe scale parameter cthe shape parameter Generates a variate from the Nakagami distribution


getA

public double getA()
. \begin{tabb}Returns the location parameter $a$\ of this object.
 \end{tabb}
the location parameter mu


getLambda

public double getLambda()
. \begin{tabb}Returns the scale parameter $\lambda$\ of this object.
 \end{tabb}
the scale parameter mu


getC

public double getC()
. \begin{tabb}Returns the shape parameter $c$\ of this object.
 \end{tabb}
the shape parameter mu


SSJ
V. labo.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.