|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgalatea.glider.GRnd
Class GRnd definition.
This is the base class for random distributions in Galatea.
-----
Clase básica para distribuciones aleatorias de Galatea.
| Constructor Summary | |
GRnd()
|
|
| Method Summary | |
static boolean |
ber(double p)
Bernoulli's distribution with seed 1 ----- Distribución de Bernoulli para semilla 1 |
static boolean |
ber(double p,
int s)
Bernoulli's distribution. |
static double |
beta(double a,
double b)
Beta Distribution with seed 1 ----- Distribución Beta para semilla 1 |
static double |
beta(double a,
double b,
int s)
Beta Distribution. |
static double |
erlg(double u,
long k)
Erlang's Distribution with seed 1. |
static double |
erlg(double u,
long k,
int s)
Erlang's Distribution. |
static double |
expo(double u)
Exponential distribution with seed 1 ----- Distribución exponencial para semilla 1 |
static double |
expo(double u,
int s)
Exponential distribution. |
static double |
gamma(double u,
double d)
Gamma distribution with seed 1. |
static double |
gamma(double u,
double d,
int s)
Gamma distribution. |
static double |
gauss(double u,
double d)
Positive normal distribution with seed 1 ----- Distribución normal positiva para semilla 1 |
static double |
gauss(double u,
double d,
int s)
Positive normal distribution. |
static void |
inisem()
Init value in seeds. |
static double |
lognorm(double u,
double f)
LogNormal distribution with seed 1. |
static double |
lognorm(double u,
double f,
int s)
LogNormal distribution with seed 1. |
static double |
norm(double u,
double d)
Normal distribution with seed 1. |
static double |
norm(double u,
double d,
int s)
Normal distribution. |
static int |
poisson(double u)
Poisson's distribution with seed 1 ----- Distribución de Poisson para semilla 1 |
static int |
poisson(double u,
int s)
Poisson's distribution. |
static double |
rnd(int s)
Random number generator. |
static double |
tria(double a,
double b,
double c)
Triangle distribution with seed 1 ----- Distribución Triangular para semilla 1 |
static double |
tria(double a,
double b,
double c,
int s)
Triangle distribution. |
static double |
unif(double a,
double b)
Uniform distribution with seed 1 ----- Distribución Uniforme para semilla 1 |
static double |
unif(double a,
double b,
int s)
Uniform distribution. |
static int |
unif(int a,
int b)
Integer uniform distribution with seed 1 ----- Distribución uniforme entera para semilla 1 |
static int |
unif(int a,
int b,
int s)
Integer uniform distribution. |
static double |
weibull(double e,
double f)
Weibull's distribution with seed 1. |
static double |
weibull(double e,
double f,
int s)
Weibull's distribution. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GRnd()
| Method Detail |
public static boolean ber(double p)
throws galatea.glider.ErrorRnd
p - double. Mean. ErrorRnd - Error Message: Out of range.
public static boolean ber(double p,
int s)
throws galatea.glider.ErrorRnd
p - double. Mean. s - int. Seed. ErrorRnd. - Error Message: Out of range. not(0 <=p <=1). galatea.glider.ErrorRnd
public static double beta(double a,
double b)
throws galatea.glider.ErrorRnd
a - double. Minimal limit value. b - double. Maximal limit value. ErrorRnd - Error Message: Out of range. (a <=0).
public static double beta(double a,
double b,
int s)
throws galatea.glider.ErrorRnd
a - double. Minimal limit value. b - double. Maximal limit value. s - int. Seed. ErrorRnd - Error Message: Out of range. (a <=0).
public static double erlg(double u,
long k)
throws galatea.glider.ErrorRnd
u - double. Mean of exponentials distributions. k - long. Number of exponentials distributions. ErrorRnd - Error Message: Out of range. (u < 0) || (k <= 0).
public static double erlg(double u,
long k,
int s)
throws galatea.glider.ErrorRnd
u - double. Mean of exponentials distributions. k - long. Number of exponentials distributions. s - int. Seed. ErrorRnd - Error Message: Out of range. (u < 0) || (k <= 0).
public static double expo(double u)
throws galatea.glider.ErrorRnd
u - double. Mean. ErrorRnd - Error Message: Out of range. (u < 0).
public static double expo(double u,
int s)
throws galatea.glider.ErrorRnd
u - double. Mean. s - int. Seed. ErrorRnd - Error Message: Out of range. (u < 0).
public static double gamma(double u,
double d)
throws galatea.glider.ErrorRnd
u - double. Mean. d - double. Desviation. ErrorRnd - Error Message: Out of range. (a <= 0).
public static double gamma(double u,
double d,
int s)
throws galatea.glider.ErrorRnd
u - double. Mean. d - double. Desviation. s - int. Seed. ErrorRnd - Error Message: Out of range. (a <= 0).
public static double gauss(double u,
double d)
throws galatea.glider.ErrorRnd
u - double. Mean. d - double. Desviation. ErrorRnd - Error Message: Out of range. (d < 0).
public static double gauss(double u,
double d,
int s)
throws galatea.glider.ErrorRnd
u - double. Mean. d - double. Desviation. s - int. Seed. ErrorRnd - Error Message: Out of range. (d < 0).
public static double lognorm(double u,
double f)
throws galatea.glider.ErrorRnd
u - double. Mean. f - double. Form. ErrorRnd - Error Message: Out of range. (f <= 0).
public static double lognorm(double u,
double f,
int s)
throws galatea.glider.ErrorRnd
u - double. Mean. f - double. Form. s - int. Seed. ErrorRnd - Error Message: Out of range. (f <= 0).
public static double norm(double u,
double d)
throws galatea.glider.ErrorRnd
u - double. Mean. d - double. Desviation. ErrorRnd - Error Message: Out of range. (d < 0).
public static double norm(double u,
double d,
int s)
throws galatea.glider.ErrorRnd
u - double. Mean. d - double. Desviation. s - int. Seed. ErrorRnd - Error Message: Out of range. (d < 0).
public static int poisson(double u)
throws galatea.glider.ErrorRnd
u - double. Mean. ErrorRnd - Error Message: Out of range. (u < 0).
public static int poisson(double u,
int s)
throws galatea.glider.ErrorRnd
u - double. Mean. s - int. Seed. ErrorRnd - Error Message: Out of range. (u < 0).
public static double tria(double a,
double b,
double c)
throws galatea.glider.ErrorRnd
a - double. Value. b - double. Value. c - double. Value. ErrorRnd - Error Message: Out of range. (a < b < c).
public static double tria(double a,
double b,
double c,
int s)
throws galatea.glider.ErrorRnd
a - double. Value. b - double. Value. c - double. Value. s - int. Seed. ErrorRnd - Error Message: Out of range. (a < b < c).
public static double unif(double a,
double b)
throws galatea.glider.ErrorRnd
a - double. Value. b - double. Value. ErrorRnd - Error Message: Out of range. (b < a).
public static double unif(double a,
double b,
int s)
throws galatea.glider.ErrorRnd
a - double. Value. b - double. Value. s - int. Seed. ErrorRnd - Error Message: Out of range. (b < a).
public static int unif(int a,
int b)
throws galatea.glider.ErrorRnd
a - int. Value. b - int. Value. ErrorRnd - Error Message: Out of range. (b < a).
public static int unif(int a,
int b,
int s)
throws galatea.glider.ErrorRnd
a - int. Value. b - int. Value. s - int. Seed. ErrorRnd - Error Message: Out of range. (b < a).
public static double weibull(double e,
double f)
throws galatea.glider.ErrorRnd
e - double. Escale. f - double. Form. ErrorRnd - Error Message: Out of range. (e < 0) || (f <= 0).
public static double weibull(double e,
double f,
int s)
throws galatea.glider.ErrorRnd
e - double. Escale. f - double. Form. s - int. Seed. ErrorRnd - Error Message: Out of range. (e < 0) || (f <= 0). public static void inisem()
public static double rnd(int s)
s - int. Seed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||