|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jmat.data.AbstractDoubleArray
|
+--org.jmat.data.AbstractMatrix
|
+--org.jmat.data.Matrix
|
+--org.jmat.data.RandomMatrix
The RandomMatrix Class provides tools for statistical simulations,it extends the Matrix Class and adds many methods.
| Field Summary |
| Fields inherited from class org.jmat.data.AbstractDoubleArray |
m, n |
| Constructor Summary | |
RandomMatrix(AbstractMatrix M)
Construct an m-by-n matrix of 0. |
|
RandomMatrix(int m,
int n)
Construct an m-by-n matrix of 0. |
|
| Method Summary | |
static RandomMatrix |
beta(int m,
int n,
double a,
double b)
Construct an m-by-n matrix of random numbers from a Beta random variable. |
static RandomMatrix |
cauchy(int m,
int n,
double mu,
double sigma)
Construct an m-by-n matrix of random numbers from a Cauchy random variable. |
AbstractMatrix |
correlation()
Generate a correlation matrix, each column contains values of a pulling. |
AbstractMatrix |
covariance()
Generate a covariance matrix, each column contains values of a pulling. |
static RandomMatrix |
dirac(int m,
int n,
AbstractMatrix val_prob)
Construct an m-by-n matrix of random numbers from a discrete random variable. |
static RandomMatrix |
exponential(int m,
int n,
double lambda)
Construct an m-by-n matrix of random numbers from an exponantial random variable. |
boolean |
getIsSample()
Specify if the RandomMatrix is a sample of an overall population, or if it's an overall population. |
static RandomMatrix |
logNormal(int m,
int n,
double mu,
double sigma)
Construct an m-by-n matrix of random numbers from a LogNormal random variable. |
AbstractMatrix |
mean()
Generate a row matrix, each column contents the mean value of the columns. |
static RandomMatrix |
normal(int m,
int n,
double mu,
double sigma)
Construct an m-by-n matrix of random numbers from a Gaussian (Normal) random variable. |
static RandomMatrix |
rejection(int m,
int n,
DoubleFunction fun,
double min,
double max)
Construct an m-by-n matrix of random numbers from a random variable definied by its density function, using the rejection technic. ! |
static RandomMatrix |
sampleWithoutReplacement(int m,
int n,
Matrix B)
Construct a sample without replacement of a matrix. |
static RandomMatrix |
sampleWithReplacement(int m,
int n,
Matrix B)
Construct a sample with replacement of a matrix. |
void |
setIsSample(boolean is)
Specify if the RandomMatrix is a sample of an overall population, or if it's an overall population. |
static RandomMatrix |
triangular(int m,
int n,
double min,
double max)
Construct an m-by-n matrix of random numbers from a symetric triangular random variable. |
static RandomMatrix |
triangular(int m,
int n,
double min,
double med,
double max)
Construct an m-by-n matrix of random numbers from a non-symetric triangular random variable. |
static RandomMatrix |
uniform(int m,
int n,
double min,
double max)
Construct an m-by-n matrix of random numbers from a uniform random variable. |
AbstractMatrix |
variance()
Generate a variance matrix, each column contains values of a pulling. |
static RandomMatrix |
weibull(int m,
int n,
double lambda,
double c)
Construct an m-by-n matrix of random numbers from a Weibull random variable. |
| Methods inherited from class org.jmat.data.Matrix |
diagonal, get, getInstance, identity, incrementColumns, incrementColumns, incrementRows, incrementRows, mergeColumns, mergeRows, random, reset, set |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RandomMatrix(int m,
int n)
m - Number of rows.n - Number of columns.public RandomMatrix(AbstractMatrix M)
M - Matrix to construct.| Method Detail |
public static RandomMatrix uniform(int m,
int n,
double min,
double max)
m - Number of rows.n - Number of columns.min - Min of the random variable.max - Max of the random variable.
public static RandomMatrix dirac(int m,
int n,
AbstractMatrix val_prob)
m - Number of rows.n - Number of columns.val_prob - Matrix of the discrete value and their probabilities.
public static RandomMatrix normal(int m,
int n,
double mu,
double sigma)
m - Number of rows.n - Number of columns.mu - Mean of the random variable.sigma - Standard deviation of the random variable.
public static RandomMatrix logNormal(int m,
int n,
double mu,
double sigma)
m - Number of rows.n - Number of columns.mu - Mean of the Normal random variable.sigma - Standard deviation of the Normal random variable.
public static RandomMatrix exponential(int m,
int n,
double lambda)
m - Number of rows.n - Number of columns.lambda - Parmaeter of the exponential random variable.
public static RandomMatrix triangular(int m,
int n,
double min,
double max)
m - Number of rows.n - Number of columns.min - Min of the random variable.max - Max of the random variable.
public static RandomMatrix triangular(int m,
int n,
double min,
double med,
double max)
m - Number of rows.n - Number of columns.min - Min of the random variable.med - Value of the random variable with max density.max - Max of the random variable.
public static RandomMatrix beta(int m,
int n,
double a,
double b)
m - Number of rows.n - Number of columns.a - First parameter of the Beta random variable < 1.b - Second parameter of the Beta random variable < 1.
public static RandomMatrix cauchy(int m,
int n,
double mu,
double sigma)
m - Number of rows.n - Number of columns.mu - Median of the Weibull random variablesigma - Second parameter of the Cauchy random variable.
public static RandomMatrix weibull(int m,
int n,
double lambda,
double c)
m - Number of rows.n - Number of columns.lambda - First parameter of the Weibull random variable.c - Second parameter of the Weibull random variable.
public static RandomMatrix rejection(int m,
int n,
DoubleFunction fun,
double min,
double max)
m - Number of rows.n - Number of columns.fun - Density function of the random variable.min - Min of the random variable.max - Max of the random variable.
public static RandomMatrix sampleWithReplacement(int m,
int n,
Matrix B)
m - Number of rows.n - Number of columns.B - Matrix to sample.
public static RandomMatrix sampleWithoutReplacement(int m,
int n,
Matrix B)
m - Number of rows.n - Number of columns.B - Matrix to sample.
public void setIsSample(boolean is)
is - Is sample?.public boolean getIsSample()
public AbstractMatrix mean()
mean in class AbstractMatrixpublic AbstractMatrix covariance()
covariance in class AbstractMatrixpublic AbstractMatrix correlation()
correlation in class AbstractMatrixpublic AbstractMatrix variance()
variance in class AbstractMatrix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||