|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MultivariateDistribution
Basic functionality for multivariate continuous random variables.
| Method Summary | |
|---|---|
double |
densityAt(double[] x)
Computes the density at the given point. |
void |
densityAt(double[][] x,
double[] p)
Computes the density at the points that make up the rows of the input array, and places the result in the supplied array. |
double |
densityAt(cern.colt.matrix.DoubleMatrix1D x)
Computes the density at the given point. |
cern.colt.matrix.DoubleMatrix1D |
densityAt(cern.colt.matrix.DoubleMatrix2D x)
Computes the density at the points comprising the rows of the input matrix, and returns a newly-created vector holding the result. |
cern.colt.matrix.DoubleMatrix1D |
densityAt(cern.colt.matrix.DoubleMatrix2D x,
cern.colt.matrix.DoubleMatrix1D p)
Computes the density at the points comprising the rows of the input matrix, and places the result in the supplied vector. |
int |
getInputDimension()
Returns the number of dimensions of this distribution |
cern.colt.matrix.DoubleMatrix1D |
makeNextSample()
Creates and returns a vector holding the next random sample. |
cern.colt.matrix.DoubleMatrix2D |
makeNextSample(int numSamples)
Creates and returns a matrix holding the next numSamples random
samples. |
void |
nextSample(double[] arr)
Generates the next random sample of this distribution and places the result in the supplied array. |
void |
nextSample(double[][] arr)
Generates the next m random samples of this distribution and places
the result in the supplied array. |
cern.colt.matrix.DoubleMatrix1D |
nextSample(cern.colt.matrix.DoubleMatrix1D vec)
Generates the next random sample of this distribution and places the result in the supplied vector. |
cern.colt.matrix.DoubleMatrix2D |
nextSample(cern.colt.matrix.DoubleMatrix2D mat)
Generates the next m random samples of this distribution and places
the result in the supplied matrix. |
void |
setInputDimension(int inputDimension)
Sets the number of dimensions of this distribution |
void |
setSeed(int seed)
Sets the seed for the random number generator of this distribution instance. |
| Method Detail |
|---|
double densityAt(double[] x)
x - the given point.
void densityAt(double[][] x,
double[] p)
x - array whose rows are the points where density is desired.p - array to hold the result, cannot be null.double densityAt(cern.colt.matrix.DoubleMatrix1D x)
x - the given point
cern.colt.matrix.DoubleMatrix1D densityAt(cern.colt.matrix.DoubleMatrix2D x)
x - matrix whose rows comprise the points where density is desired.
cern.colt.matrix.DoubleMatrix1D densityAt(cern.colt.matrix.DoubleMatrix2D x,
cern.colt.matrix.DoubleMatrix1D p)
x - matrix whose rows are the points where density is desired.p - vector to hold the result, cannot be null.
int getInputDimension()
cern.colt.matrix.DoubleMatrix1D makeNextSample()
cern.colt.matrix.DoubleMatrix2D makeNextSample(int numSamples)
numSamples random
samples.
numSamples - the number of samples desired.
numSamples samples.void nextSample(double[] arr)
arr - array to store the result, cannot be null.void nextSample(double[][] arr)
m random samples of this distribution and places
the result in the supplied array. the number m is inferred from the
number of rows in the supplied array.
arr - array to hold the result, cannot be null.cern.colt.matrix.DoubleMatrix1D nextSample(cern.colt.matrix.DoubleMatrix1D vec)
vec - vector to hold the result. Cannot be null. Use
makeNextSample() if the sample
needs to be created from scratch.
cern.colt.matrix.DoubleMatrix2D nextSample(cern.colt.matrix.DoubleMatrix2D mat)
m random samples of this distribution and places
the result in the supplied matrix. Returns a pointer to the same matrix for
convenience.
mat - matrix to hold the result. Cannot be null
makeNextSample(int) to creates
samples from scratch.void setInputDimension(int inputDimension)
inputDimension - the given number of dimensions.void setSeed(int seed)
seed - the given seed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||