jsim.variate
Class Cauchy

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

public class Cauchy
extends Variate

Cauchy random variate generation.


Constructor Summary
Cauchy(double mu, double sigma, int i)
          Constructs a Cauchy random varaible.
 
Method Summary
 double gen()
          Generate a random number from the Cauchy 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

Cauchy

public Cauchy(double mu,
              double sigma,
              int i)
Constructs a Cauchy random varaible.

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 the Cauchy distribution.

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