jsim.variate
Class LogNormal

java.lang.Object
  extended by jsim.variate.Variate
      extended by jsim.variate.LogNormal

public class LogNormal
extends Variate

Log Normal random variate generation.


Constructor Summary
LogNormal(double mu, double sigma, int i)
          Constructs a Log Normal random variate.
 
Method Summary
 double gen()
          Generate a random number from Log Normal distribution.
 java.lang.Double[] getParameters()
          Get the parameters of the constuctor
 
Methods inherited from class jsim.variate.Variate
incStream, printName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogNormal

public LogNormal(double mu,
                 double sigma,
                 int i)
Constructs a Log Normal random variate.

Parameters:
mu - mean
sigma - standard deviation
i - random number stream
Method Detail

getParameters

public java.lang.Double[] getParameters()
Get the parameters of the constuctor

Overrides:
getParameters in class Variate

gen

public double gen()
Generate a random number from Log Normal distribution.

Overrides:
gen in class Variate
Returns:
double random number from LogNormal distribution