public class FullMultivariateGaussian extends AbstractMultivariateGaussian
MultivariateGaussian with a full covariance
matrix.| Modifier and Type | Field and Description |
|---|---|
Jama.Matrix |
covar
The covariance matrix
|
mean| Constructor and Description |
|---|
FullMultivariateGaussian(int ndims)
Construct the Gaussian with the zero mean and unit variance
|
FullMultivariateGaussian(Jama.Matrix mean,
Jama.Matrix covar)
Construct the Gaussian with the provided center and covariance
|
| Modifier and Type | Method and Description |
|---|---|
Jama.Matrix |
getCovariance()
Get the covariance
|
double |
getCovariance(int row,
int column)
Get a covariance value from the covariance matrix.
|
estimateLogProbability, estimateLogProbability, estimateProbability, getMean, numDims, sample, sample, toStringpublic Jama.Matrix covar
public FullMultivariateGaussian(Jama.Matrix mean, Jama.Matrix covar)
mean - centre of the Gaussiancovar - covariance of the Gaussianpublic FullMultivariateGaussian(int ndims)
ndims - number of dimensionspublic Jama.Matrix getCovariance()
MultivariateGaussianpublic double getCovariance(int row, int column)
MultivariateGaussianThis method is provided for efficiency as not all implementations will store the full matrix, and it would be wasteful to create it each time a value is needed.
row - the row of the matrix value to getcolumn - the column of the matrix value to get