jsim.variate
Class Uniform2

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

public class Uniform2
extends Variate

Uniform random variate generation in which variates are constructed by specifying the lower and upper bounds.


Constructor Summary
Uniform2(double min, double max, int i)
          Constructs a Unifrom random variate.
 
Method Summary
 double gen()
          Generate a random number from the Uniform 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

Uniform2

public Uniform2(double min,
                double max,
                int i)
Constructs a Unifrom random variate.

Parameters:
min - minimum value
max - maximum value
i - 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 Uniform distribution.

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