eduni.distributions
Class Generator

java.lang.Object
  |
  +--eduni.distributions.Generator
All Implemented Interfaces:
Seedable
Direct Known Subclasses:
Bernoulli, Beta, Binomial, Cauchy, ChiSquare, Erlang, FDistribution, Gamma, Geometric, Invgamma, Logistic, Negexp, Normal, Pareto, Pascal, Poisson, Tstudent, Uniform, Weibull

public abstract class Generator
extends java.lang.Object
implements Seedable

A generic Generator class which delegates its Seedable ability to a Distributions object.


Field Summary
protected  Distributions distrib
           
 
Method Summary
 long getSeed()
          Get the random number generator's seed.
 void reseed()
          Get another seed well-spaced (from the default SeedGenerator)
 void setSeed(long seed)
          Set the random number generator's seed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distrib

protected Distributions distrib
Method Detail

setSeed

public void setSeed(long seed)
Description copied from interface: Seedable
Set the random number generator's seed.

Specified by:
setSeed in interface Seedable
Parameters:
seed - The new seed for the generator

getSeed

public long getSeed()
Description copied from interface: Seedable
Get the random number generator's seed.

Specified by:
getSeed in interface Seedable
Returns:
The generator's seed

reseed

public void reseed()
Description copied from interface: Seedable
Get another seed well-spaced (from the default SeedGenerator)

Specified by:
reseed in interface Seedable