public class REpiceaRandom
extends java.util.Random
Modifier | Constructor and Description |
---|---|
protected |
REpiceaRandom() |
Modifier and Type | Method and Description |
---|---|
Matrix |
nextBartlettDecompositionMatrix(int df,
int dim)
This method returns the matrix A in the Bartlett decomposition.
|
double |
nextBeta(double scale1,
double scale2)
Returns a random deviate from a beta distribution.
|
double |
nextChiSquare(int df)
This method returns a Chi squared random value.
|
double |
nextGamma(double shape,
double scale)
Returns a random gamma distributed value following Marsaglia and Tsang's method.
|
int |
nextNegativeBinomial(double mean,
double dispersion)
This method returns a random integer that follows negative binomial distribution.
|
double |
nextStudentT(double df)
Returns a random deviate from the standard Student's t distribution.
|
public double nextBeta(double scale1, double scale2)
scale1
- a double larger than 0scale2
- a double larger than 0public double nextGamma(double shape, double scale)
shape
- a double larger than 0scale
- a double larger than 0public int nextNegativeBinomial(double mean, double dispersion)
mean
- the mean of the distributiondispersion
- the dispersion parameterpublic double nextStudentT(double df)
df
- the degrees of freedomBailey, R.W. 1994. Polar generation of random variances with the t-distribution.
Mathematics of Computation 62(206): 779-781.
public double nextChiSquare(int df)
df
- the degrees of freedompublic Matrix nextBartlettDecompositionMatrix(int df, int dim)
df
- degrees of freedomdim
- the dimensions of the matrix