public class MultivNormalDistribution extends MultivariateDistribution
dimension
name
Constructor and Description |
---|
MultivNormalDistribution(java.lang.String name,
double[] means,
double[][] covariances)
Creates an object representing a multivariate normal distribution based on the means and covariances provided
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.Double> |
draw() |
org.apache.commons.math3.distribution.MultivariateNormalDistribution |
getCorrespondingDistribution() |
double[][] |
getCovariances() |
double[] |
getMeans() |
getDimension, getName
toString
public MultivNormalDistribution(java.lang.String name, double[] means, double[][] covariances) throws java.lang.IllegalArgumentException
name
- name of the distribution to create (will be prefixed by MultivariateNormalDistribution_)means
- double array describing the vector of the means of the normal distributionscovariances
- 2D double matrix describing the covariances of between the dimensionsjava.lang.IllegalArgumentException
- will be thrown when the dimensionality of the means or covariance dont matchpublic java.util.ArrayList<java.lang.Double> draw()
draw
in class MultivariateDistribution
public org.apache.commons.math3.distribution.MultivariateNormalDistribution getCorrespondingDistribution()
public double[] getMeans()
public double[][] getCovariances()