|
|
com.kutsyy.util
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
private static long |
MODLUS
|
private static long |
MULT1
|
private static long |
MULT2
|
private static double |
remainder
|
private static int |
remaining
|
private static MersenneTwister |
rnd
|
private static long[] |
zrng
|
| Constructor Summary | |
Rnd()
|
|
| Method Summary | |
static double |
beta(double alpha1,
double alpha2)
Be(alpha1, alpha2) |
static double[] |
beta(int n,
double alpha1,
double alpha2)
Be(alpha1, alpha2) |
static int |
binomial_int(double p)
Binomial(p) |
static int[] |
binomial_int(int n,
int p)
Binomial(p) |
static boolean |
binomial(double p)
Binomial(p) |
static boolean[] |
binomial(int n,
double p)
Binomial(p) |
static double |
exp(double lambda)
Exponential(lambda) |
static double[] |
exp(int n,
double lambda)
Exponential(lambda) |
static double |
gamma(double alpha,
double beta)
Gamma(alpha,beta) |
static double[] |
gamma(int n,
double alpha,
double beta)
Gamma(alpha,beta) |
private static double |
gauss()
Insert the method's description here. |
static int |
geometric(double p)
Geometric(p) |
static int[] |
geometric(int n,
double p)
Geometric(p) |
static double |
lognor(double mu,
double sigma)
Insert the method's description here. |
static double[] |
lognor(int n,
double mu,
double sigma)
Insert the method's description here. |
static double[] |
mvnor_sqrtSigma(double[][] sqrtSigma)
Insert the method's description here. |
static double[] |
mvnor(double[][] sigma)
Insert the method's description here. |
static double[] |
mvnor(double[] mu,
double[][] sigma)
Insert the method's description here. |
static double[] |
mvnor(double mu,
double[][] sigma)
Insert the method's description here. |
static double[][] |
mvnor(int n,
double[][] sigma)
Insert the method's description here. |
static double[][] |
mvnor(int n,
double[] mu,
double[][] sigma)
Insert the method's description here. |
static double[][] |
mvnor(int n,
double mu,
double[][] sigma)
Insert the method's description here. |
static double[] |
mvntrc(double[] low,
double[] high,
double[][] sigma)
Insert the method's description here. |
static double[][] |
mvntrc(int n,
double[] low,
double[] high,
double[][] sigma)
Insert the method's description here. |
static double[] |
mvntrcChol(double[] low,
double[] high,
double[][] sqrtSigma)
Insert the method's description here. |
static int |
negbinomial(int s,
double p)
Insert the method's description here. |
static int[] |
negbinomial(int n,
int s,
double p)
Insert the method's description here. |
static double |
nor()
Insert the method's description here. |
static double |
nor(double mu,
double sd)
Insert the method's description here. |
static double[] |
nor(int n)
Insert the method's description here. |
static double[] |
nor(int n,
double mu,
double sd)
Insert the method's description here. |
static double[] |
norOrdered(int n)
Insert the method's description here. |
static double |
ntrc(double low)
Insert the method's description here. |
static double |
ntrc(double low,
double high)
Insert the method's description here. |
static double |
ntrc(double low,
double high,
double mu,
double sd)
Insert the method's description here. |
static double[] |
ntrc(int n,
double low,
double high)
Insert the method's description here. |
static double[] |
ntrc(int n,
double low,
double high,
double mu,
double sd)
Insert the method's description here. |
static int |
poisson(double lambda)
Insert the method's description here. |
static int[] |
poisson(int n,
double lambda)
Insert the method's description here. |
private static double |
rand(int stream)
Insert the method's description here. |
static double |
triang(double c)
Insert the method's description here. |
static double |
triang(double a,
double b,
double c)
Insert the method's description here. |
static double[] |
triang(int n,
double c)
Insert the method's description here. |
static double[] |
triang(int n,
double a,
double b,
double c)
Insert the method's description here. |
static double |
unif()
Insert the method's description here. |
static double |
unif(double[] low,
double[] high)
Insert the method's description here. |
static double |
unif(double a,
double b)
Insert the method's description here. |
static double[] |
unif(int n)
Insert the method's description here. |
static double[] |
unif(int n,
double a,
double b)
Insert the method's description here. |
static int |
unifDiscrete(int m)
Insert the method's description here. |
static double |
weibull(double eta,
double beta)
generate single weibull(eta,betta) random variable; Creation date: (1/26/00 1:39:51 PM) |
static double[] |
weibull(int n,
double eta,
double beta)
generate array(n) if weibull(eta,betta) random variables; Creation date: (1/26/00 1:39:51 PM) |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final long[] zrng
private static final long MODLUS
private static final long MULT1
private static final long MULT2
private static int remaining
private static double remainder
private static MersenneTwister rnd
| Constructor Detail |
public Rnd()
| Method Detail |
public static double beta(double alpha1,
double alpha2)
alpha1 - alpha1alpha2 - alpha2
public static double[] beta(int n,
double alpha1,
double alpha2)
n - number of variable to generatealpha1 - alpha1alpha2 - alpha2public static boolean binomial(double p)
p - p
public static boolean[] binomial(int n,
double p)
n - number of variables to generatep - ppublic static int binomial_int(double p)
p - p
public static int[] binomial_int(int n,
int p)
n - number of variables to generatep - ppublic static double exp(double lambda)
lambda - lambda
public static double[] exp(int n,
double lambda)
n - number of variables to generatelambda - lambda
public static double gamma(double alpha,
double beta)
alpha - alphabeta - beta
public static double[] gamma(int n,
double alpha,
double beta)
n - number of variables to generatealpha - alphabeta - betapublic static int geometric(double p)
p - p
public static int[] geometric(int n,
double p)
n - number of variables to generatep - p
public static double lognor(double mu,
double sigma)
mu - doublesigma - double
public static double[] lognor(int n,
double mu,
double sigma)
n - number of variables to generatemu - doublesigma - doublepublic static double[] mvnor(double[][] sigma)
sigma - Description of Parameter
public static double[] mvnor(double[] mu,
double[][] sigma)
mu - doublesigma - double[][]
public static double[] mvnor(double mu,
double[][] sigma)
mu - doublesigma - double[][]
public static double[][] mvnor(int n,
double[][] sigma)
n - number of variables to generatesigma - Description of Parameter
public static double[][] mvnor(int n,
double[] mu,
double[][] sigma)
n - number of variables to generatemu - Description of Parametersigma - Description of Parameter
public static double[][] mvnor(int n,
double mu,
double[][] sigma)
n - number of variables to generatemu - Description of Parametersigma - Description of Parameterpublic static double[] mvnor_sqrtSigma(double[][] sqrtSigma)
sqrtSigma - double[][]
public static double[] mvntrc(double[] low,
double[] high,
double[][] sigma)
low - double[]high - double[]sigma - Description of Parameter
public static double[][] mvntrc(int n,
double[] low,
double[] high,
double[][] sigma)
n - number of variables to generatelow - double[]high - double[]sigma - double[][]
public static double[] mvntrcChol(double[] low,
double[] high,
double[][] sqrtSigma)
low - double[]high - double[]sqrtSigma - Description of Parameter
public static int negbinomial(int s,
double p)
s - intp - double
public static int[] negbinomial(int n,
int s,
double p)
n - number of variables to generates - intp - doublepublic static double nor()
public static double nor(double mu,
double sd)
mu - doublesd - doublepublic static double[] nor(int n)
n - number of variables to generate
public static double[] nor(int n,
double mu,
double sd)
n - intmu - doublesd - doublepublic static double[] norOrdered(int n)
n - number of variables to generatepublic static double ntrc(double low)
low - double
public static double ntrc(double low,
double high)
low - doublehigh - double
public static double ntrc(double low,
double high,
double mu,
double sd)
low - doublehigh - doublemu - doublesd - double
public static double[] ntrc(int n,
double low,
double high)
n - number of variables to generatelow - double[]high - double[]
public static double[] ntrc(int n,
double low,
double high,
double mu,
double sd)
n - number of variables to generatelow - double[]high - double[]mu - double[]sd - double[][]public static int poisson(double lambda)
lambda - double
public static int[] poisson(int n,
double lambda)
n - number of variables to generatelambda - doublepublic static double triang(double c)
c - double
public static double triang(double a,
double b,
double c)
a - doubleb - doublec - double
public static double[] triang(int n,
double c)
n - number of variables to generatec - double
public static double[] triang(int n,
double a,
double b,
double c)
n - number of variables to generatea - doubleb - doublec - doublepublic static double unif()
public static final double unif(double[] low,
double[] high)
low - double[]high - double[]
public static double unif(double a,
double b)
a - doubleb - doublepublic static double[] unif(int n)
n - number of variables to generate
public static double[] unif(int n,
double a,
double b)
n - number of variables to generatea - doubleb - doublepublic static int unifDiscrete(int m)
m - int
public static double weibull(double eta,
double beta)
eta - double - scale parameterbeta - double - shape parameter
public static double[] weibull(int n,
double eta,
double beta)
n - number of variables to generateeta - double - scale parameterbeta - double - shape parameterprivate static double gauss()
private static double rand(int stream)
stream - int
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||