org.omegahat.Simulation.RandomGenerators
Interface PseudoRandomVariableGenerator

All Known Subinterfaces:
PseudoRandomNormalGenerator, PseudoRandomUnivariateGenerator

public interface PseudoRandomVariableGenerator

Interface to Pseudo-random variable generators. This interface provides access to classes that generate psudo-random variables. These variables are (in general) of unknown class and thus are represented as objects. Consequently, this interface can be used to obtain pseudo-random normals or psudo-random trees, or anything else.


Method Summary
 PRNG generator()
           
 java.lang.Object nextVariable()
          Generate a single pseudo-random variable
 java.lang.Object[] nextVariable(int n)
          Generate a set of pseudo-random variables
 

Method Detail

generator

public PRNG generator()

nextVariable

public java.lang.Object nextVariable()
Generate a single pseudo-random variable

nextVariable

public java.lang.Object[] nextVariable(int n)
Generate a set of pseudo-random variables
Parameters:
n - Number of variables to generate.