|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.randvar.Rand1
RandomVariateGen
and RandomVariateGenInt
instead.
public class Rand1
This static class provides a few methods for generating random variates from various distributions, using a given random stream. All the methods given here use inversion.
This is an OLD class that is DEPRECATED. Equivalent methods in
the appropriate classes of this package should be used instead.
Method Summary | |
---|---|
static int |
binomial(RandomStream s,
int n,
double p)
Deprecated. Returns a random variate having the binomial distribution with parameters n and p, using stream s. |
static double |
chiSquare(RandomStream s,
int n)
Deprecated. Returns a random variate having the ChiSquare distribution with parameters n. |
static double |
erlang(RandomStream s,
int k,
double mu)
Deprecated. Returns a random variate having the Erlang distribution. |
static double |
expon(RandomStream s,
double mean)
Deprecated. Returns a random variate having the exponential distribution with mean = mean, using stream s. |
static int |
geometric(RandomStream s,
double p)
Deprecated. Returns a random variate having the geometric distribution with parameter p, where 0 < p < 1, using stream s. |
static double |
gumbel(RandomStream s,
double alpha,
double lambda)
Deprecated. Returns a random variate having the Gumbel distribution with parameters alpha and lambda (see, Problem 8.1). |
static double |
invStudentDist(int n,
double u)
Deprecated. Returns y = F-1(u), where F is the Student distribution function with n degrees of freedom. |
static double |
Logistic(RandomStream s,
double alpha,
double lambda)
Deprecated. Returns a Logistic random variate with parameters alpha and standard deviation lambda, using stream s. |
static double |
lognormal(RandomStream s,
double mu,
double sigma)
Deprecated. Returns a random variate having the lognormal distribution. |
static int |
negativeBinomial(RandomStream s,
int n,
double p)
Deprecated. Returns a random variate having the binomial distribution with parameters n and p, using stream s. |
static double |
normal(RandomStream s,
double mean,
double sigma)
Deprecated. Returns a normal random variate with mean mu and standard deviation sigma using stream s. |
static double |
pareto(RandomStream s,
double alpha,
double beta)
Deprecated. Returns a random variate having the Pareto distribution with parameters alpha and ![]() |
static int |
poisson(RandomStream s,
double lambda)
Deprecated. Returns a random variate having the Poisson distribution with parameter (mean) lambda. |
static double |
student(RandomStream s,
int n)
Deprecated. Returns a random variate having the Student distribution with n degrees of freedom, using stream s. |
static double |
uniform(RandomStream s,
double a,
double b)
Deprecated. Returns a random variate having the uniform distribution over the real interval (a, b), using stream s. |
static double |
weibull(RandomStream s,
double alpha,
double lambda,
double delta)
Deprecated. Returns a random variate having the Weibull distribution. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double uniform(RandomStream s, double a, double b)
public static double expon(RandomStream s, double mean)
public static double erlang(RandomStream s, int k, double mu)
ExponentialDist.inverseF
k times with stream s,
and returns the sum.
public static double weibull(RandomStream s, double alpha, double lambda, double delta)
public static double normal(RandomStream s, double mean, double sigma)
public static double Logistic(RandomStream s, double alpha, double lambda)
public static double student(RandomStream s, int n)
public static double invStudentDist(int n, double u)
public static double lognormal(RandomStream s, double mu, double sigma)
public static double chiSquare(RandomStream s, int n)
public static double gumbel(RandomStream s, double alpha, double lambda)
public static double pareto(RandomStream s, double alpha, double beta)
public static int binomial(RandomStream s, int n, double p)
public static int negativeBinomial(RandomStream s, int n, double p)
public static int geometric(RandomStream s, double p)
public static int poisson(RandomStream s, double lambda)
Uses Tabulated Inversion combined with Acceptance Complement strongly inspired from the UNURAN library.
|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |