numRecipes
Class RandomGenerator
java.lang.Object
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
Constructor Summary |
RandomGenerator()
default constructor : using the current time as a seed. |
RandomGenerator(long seed)
constructor with a given seed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RandomGenerator
public RandomGenerator()
- default constructor : using the current time as a seed.
RandomGenerator
public RandomGenerator(long seed)
- constructor with a given seed.
GetRandomDouble
public double GetRandomDouble()
GetGaussianDouble
public double GetGaussianDouble(double mu,
double sigma)
GetPoissonian
public long GetPoissonian(double mu)