numRecipes
Class RandomGenerator

java.lang.Object
  extended by numRecipes.RandomGenerator

public class RandomGenerator
extends java.lang.Object

Utilities for Random generator in Numerical Calculation. Some of them are based on the Numerical Recipes Library


Field Summary
static double alogMu
           
static double expMu
           
static double GammaFactor
           
static double muOld
           
static double sqMu
           
 
Constructor Summary
RandomGenerator()
          default constructor : using the current time as a seed.
RandomGenerator(long seed)
          constructor with a given seed.
 
Method Summary
 double GetGaussianDouble(double mu, double sigma)
           
 long GetPoissonian(double mu)
           
 double GetRandomDouble()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

muOld

public static double muOld

expMu

public static double expMu

alogMu

public static double alogMu

sqMu

public static double sqMu

GammaFactor

public static double GammaFactor
Constructor Detail

RandomGenerator

public RandomGenerator()
default constructor : using the current time as a seed.


RandomGenerator

public RandomGenerator(long seed)
constructor with a given seed.

Method Detail

GetRandomDouble

public double GetRandomDouble()

GetGaussianDouble

public double GetGaussianDouble(double mu,
                                double sigma)

GetPoissonian

public long GetPoissonian(double mu)