| Modifier and Type | Field and Description |
|---|---|
| private final RealMatrix | covarianceMatrix
Covariance matrix. |
| private final double | covarianceMatrixDeterminant
The determinant of the covariance matrix. |
| private final RealMatrix | covarianceMatrixInverse
The matrix inverse of the covariance matrix. |
| private final double[] | means
Vector of means. |
| private final RealMatrix | samplingMatrix
Matrix used in computation of samples. |
| Access | Constructor and Description |
|---|---|
| public | MultivariateNormalDistribution(final double[]
Vector of means. means, final double[][] Covariance matrix. covariances)Creates a multivariate normal distribution with the given mean vector and covariance matrix. |
| public | MultivariateNormalDistribution(RandomGenerator
Random Number Generator. rng, final double[] Vector of means. means, final double[][] Covariance matrix. covariances)Creates a multivariate normal distribution with the given mean vector and covariance matrix. |
| Modifier and Type | Method and Description |
|---|---|
| public double | density(final double[]
Point at which the PDF is evaluated. vals)Implements org. Returns the probability density function (PDF) of this distribution
evaluated at the specified point |
| public RealMatrix | |
| private double | Returns: the multiplication factor of density calculations.Values at which to compute density. values)Computes the term used in the exponent (see definition of the distribution). |
| public double[] | |
| public double[] | Returns: the standard deviations.Gets the square root of each element on the diagonal of the covariance matrix. |
| public double[] | sample()
Implements abstract org. Implements org. Generates a random value vector sampled from this distribution. |
| covarianceMatrix | back to summary |
|---|---|
| private final RealMatrix covarianceMatrix Covariance matrix. | |
| covarianceMatrixDeterminant | back to summary |
|---|---|
| private final double covarianceMatrixDeterminant The determinant of the covariance matrix. | |
| covarianceMatrixInverse | back to summary |
|---|---|
| private final RealMatrix covarianceMatrixInverse The matrix inverse of the covariance matrix. | |
| means | back to summary |
|---|---|
| private final double[] means Vector of means. | |
| samplingMatrix | back to summary |
|---|---|
| private final RealMatrix samplingMatrix Matrix used in computation of samples. | |
| MultivariateNormalDistribution | back to summary |
|---|---|
| public MultivariateNormalDistribution(final double[] means, final double[][] covariances) throws SingularMatrixException, DimensionMismatchException, NonPositiveDefiniteMatrixException Creates a multivariate normal distribution with the given mean vector and
covariance matrix.
Note this constructor will implicitly create an instance of
| |
| MultivariateNormalDistribution | back to summary |
|---|---|
| public MultivariateNormalDistribution(RandomGenerator rng, final double[] means, final double[][] covariances) throws SingularMatrixException, DimensionMismatchException, NonPositiveDefiniteMatrixException Creates a multivariate normal distribution with the given mean vector and
covariance matrix.
| |
| density | back to summary |
|---|---|
| public double density(final double[] vals) throws DimensionMismatchException Implements org. Doc from org. Returns the probability density function (PDF) of this distribution
evaluated at the specified point
| |
| getCovariances | back to summary |
|---|---|
| public RealMatrix getCovariances() Gets the covariance matrix.
| |
| getExponentTerm | back to summary |
|---|---|
| private double getExponentTerm(final double[] values) Computes the term used in the exponent (see definition of the distribution).
| |
| getMeans | back to summary |
|---|---|
| public double[] getMeans() Gets the mean vector.
| |
| getStandardDeviations | back to summary |
|---|---|
| public double[] getStandardDeviations() Gets the square root of each element on the diagonal of the covariance matrix.
| |
| sample | back to summary |
|---|---|
| public double[] sample() Implements abstract org. Implements org. Doc from org. Generates a random value vector sampled from this distribution.
| |