|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.blocks.arrangeBlock.Distributions
public class Distributions
offers several discrete and continuous distributions all seeded by a common well-spaced pseudo random number generator (PRNG).
Constructor Summary | |
---|---|
Distributions()
The seed is automatically provided by a well-spaced SeedGenerator |
|
Distributions(ContinuousGenerator gen)
This constructor allows for manually specially the continous generator shared to compute the distribution function. |
|
Distributions(long seed)
The seed is manually set |
Method Summary | |
---|---|
long |
bernoulli(double prob)
computes a Bernoulli's distribution |
double |
beta(double shape_a,
double shape_b)
computes a beta distribution using Cheng's method (1978) when shape_a>1 or shape_b>1 and Berman's method (1970) otherwise |
double |
betaprime(double shape_a,
double shape_b)
computes a beta prime distribution |
long |
binomial(double prob,
int trials)
computes a binomial distribution |
double |
cauchy(double median,
double scale)
computes a Cauchy's distribution |
double |
chisquare(long deg_freedom)
computes a chisquare distribution |
double |
erlang(double scale,
double shape)
computes an Erlang's distribution |
double |
f(long num_deg_freedom,
long den_deg_freedom)
computes a F distribution |
double |
gamma(double scale,
double shape)
computes a gamma distribution |
long |
geometric(double prob)
computes a geometric distribution |
double |
invgamma(double scale,
double shape)
computes an invgamma distribution |
double |
logistic(double location,
double scale)
computes a logistic distribution |
double |
lognormal(double mean,
double variance)
computes a lognormal distribution |
double |
lognormal2(double mean,
double std_dev)
computes a lognormal distribution |
double |
negexp(double mean)
computes a negexp distribution |
double |
normal(double mean,
double variance)
computes a normal distribution; sample are provided by the same PRGN |
double |
normal2(double mean,
double std_dev)
computes a normal distribution; sample are provided by the same PRGN |
double |
pareto(double scale,
double shape)
computes a pareto distribution; sample is provided by the PRGN |
long |
pascal(double prob,
int successes)
computes a Pascal's distribution |
long |
poisson(double mean)
computes a poisson distribution |
double |
tstudent(long deg_freedom)
computes a tstudent distribution; sample is provided by the PRGN |
double |
uniform(double min,
double max)
computes a uniform distribution; sample is provided by the PRGN |
double |
weibull(double scale,
double shape)
computes a weibull distribution; sample is provided by the PRGN |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Distributions()
SeedGenerator
public Distributions(ContinuousGenerator gen)
public Distributions(long seed)
Method Detail |
---|
public long bernoulli(double prob)
public double beta(double shape_a, double shape_b)
public double betaprime(double shape_a, double shape_b)
public long binomial(double prob, int trials)
public double cauchy(double median, double scale)
public double chisquare(long deg_freedom)
public double erlang(double scale, double shape)
public double f(long num_deg_freedom, long den_deg_freedom)
public double gamma(double scale, double shape)
public long geometric(double prob)
public double invgamma(double scale, double shape)
public double logistic(double location, double scale)
public double lognormal(double mean, double variance)
public double lognormal2(double mean, double std_dev)
std_dev
- is assumed to be the square root of the variance.
public double negexp(double mean)
public double normal(double mean, double variance)
public double normal2(double mean, double std_dev)
std_dev
- is assumed to be the square root of the variance.
public double pareto(double scale, double shape)
public long pascal(double prob, int successes)
public long poisson(double mean)
public double tstudent(long deg_freedom)
public double uniform(double min, double max)
public double weibull(double scale, double shape)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |