jsim.variate
Class Variate

java.lang.Object
  extended by jsim.variate.Variate
Direct Known Subclasses:
Bernoulli, Beta, Binomial, Cauchy, ChiSquare, DiscreteProb, Erlang, Exponential, F_Distribution, Gamma, Geometric, HyperExponential, HyperGeometric, LogNormal, NegativeBinomial, Normal, Poisson, Randi, StudentT, Triangular, Uniform, Uniform2, Weibull

public class Variate
extends java.lang.Object

Random number generation via an installable random number generator.


Constructor Summary
Variate(int i)
          Constructs a random variate.
 
Method Summary
 double gen()
          Generate a random number in the interval 0 to 1.
 java.lang.Double[] getParameters()
          Get the parameters of the constuctor
 void incStream()
          Increment the stream.
 void printName()
          Print name of class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Variate

public Variate(int i)
Constructs a random variate.

Parameters:
i - stream number
Method Detail

incStream

public void incStream()
Increment the stream.


getParameters

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


gen

public double gen()
Generate a random number in the interval 0 to 1.

Returns:
double random number

printName

public void printName()
Print name of class.