|
ThinkUI Data Generator 1.0.2 API | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectthinkui.datagen.util.Variate
This class implements routines to generate various distribution of random variates. The java.util.Random.nextDouble() method is used to generate uniform variates between 0.0 and 1.0 from which all other variates are derived.
| Method Summary | |
static int |
getBernoulli(double dP)
This function returns a bernoulli variate with a probability P of success. |
static int |
getBinomial(double dP,
int nT)
This function returns a binomial variate of T bernoulli trails with probability P of success. |
static double |
getExponential(double dMu)
This function returns an exponential variate with mean 1/dMu. |
static double |
getNormal(double dMean,
double dStdDev)
This function returns an approximate normal variate with the specified mean and standard deviation. |
static double |
getNormalDouble()
Returns the next pseudorandom, Gaussian ("normally") distributed double value between 0.0 and 1.0 (exclusive). |
static int |
getPoison(double dLambda)
This function returns a poison variate with mean dLambda. |
static java.math.BigDecimal |
getUniform(java.math.BigDecimal a,
java.math.BigDecimal b)
This function returns a continuous uniform variate between a and b. |
static double |
getUniform(double dA,
double dB)
This function returns a continuous uniform variate between dA and dB. |
static int |
getUniform(int nA,
int nB)
This function returns a discrete uniform variate between nA and nB. |
static long |
getUniform(long a,
long b)
This function returns a discrete uniform variate between a and b. |
static boolean |
getUniformBoolean()
Returns the next pseudorandom, uniformly distributed boolean value. |
static double |
getUniformDouble()
Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 (exclusive). |
static void |
setRandomSeed(long seed)
Sets the seed of this random number generator. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final int getBernoulli(double dP)
dP - The probability of success.
public static final int getBinomial(double dP,
int nT)
dP - The probability of success.
public static final double getExponential(double dMu)
dMu - The value 1/dMu is the mean of the exponential variate.
public static final double getNormal(double dMean,
double dStdDev)
dMean - The mean of the normal variate.dStdDev - The standard deviation of the normal variate.
public static final double getNormalDouble()
public static final int getPoison(double dLambda)
dLambda - The mean of the poison variate.
public static final java.math.BigDecimal getUniform(java.math.BigDecimal a,
java.math.BigDecimal b)
a - The minimum value of the variate.b - The maxinum value of the variate.
public static final double getUniform(double dA,
double dB)
dA - The minimum value of the variate.dB - The maxinum value of the variate.
public static final int getUniform(int nA,
int nB)
nA - The minimum value of the variate.nB - The maxinum value of the variate.
public static final long getUniform(long a,
long b)
a - The minimum value of the variate.b - The maxinum value of the variate.
public static final boolean getUniformBoolean()
public static final double getUniformDouble()
public static final void setRandomSeed(long seed)
|
ThinkUI Data Generator 1.0.2 API | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.