MultivariateRealDistributionpublic class MixtureMultivariateNormalDistribution extends MixtureMultivariateRealDistribution<MultivariateNormalDistribution>
MixtureMultivariateRealDistributionMultivariateRealDistribution.Sampler| Constructor | Description |
|---|---|
MixtureMultivariateNormalDistribution(double[] weights,
double[][] means,
double[][][] covariances) |
Creates a multivariate normal mixture distribution.
|
MixtureMultivariateNormalDistribution(List<Pair<Double,MultivariateNormalDistribution>> components) |
Creates a mixture model from a list of distributions and their
associated weights.
|
getDimension, samplecreateSampler, density, getComponentspublic MixtureMultivariateNormalDistribution(List<Pair<Double,MultivariateNormalDistribution>> components) throws NotPositiveException, DimensionMismatchException
components - Distributions from which to sample.NotPositiveException - if any of the weights is negative.DimensionMismatchException - if not all components have the same
number of variables.public MixtureMultivariateNormalDistribution(double[] weights,
double[][] means,
double[][][] covariances)
throws NotPositiveException,
DimensionMismatchException
weights - Weights of each component.means - Mean vector for each component.covariances - Covariance matrix for each component.NotPositiveException - if any of the weights is negative.DimensionMismatchException - if not all components have the same
number of variables.Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.