Class MixtureMultivariateNormalDistribution

    • Constructor Detail

      • MixtureMultivariateNormalDistribution

        public MixtureMultivariateNormalDistribution​(double[] weights,
                                                     double[][] means,
                                                     double[][][] covariances)
        Creates a multivariate normal mixture distribution.

        Note: this constructor will implicitly create an instance of Well19937c as random generator to be used for sampling only (see MixtureMultivariateRealDistribution.sample() and AbstractMultivariateRealDistribution.sample(int)). In case no sampling is needed for the created distribution, it is advised to pass null as random generator via the appropriate constructors to avoid the additional initialisation overhead.

        Parameters:
        weights - Weights of each component.
        means - Mean vector for each component.
        covariances - Covariance matrix for each component.
      • MixtureMultivariateNormalDistribution

        public MixtureMultivariateNormalDistribution​(List<Pair<Double,​MultivariateNormalDistribution>> components)
        Creates a mixture model from a list of distributions and their associated weights.

        Note: this constructor will implicitly create an instance of Well19937c as random generator to be used for sampling only (see MixtureMultivariateRealDistribution.sample() and AbstractMultivariateRealDistribution.sample(int)). In case no sampling is needed for the created distribution, it is advised to pass null as random generator via the appropriate constructors to avoid the additional initialisation overhead.

        Parameters:
        components - List of (weight, distribution) pairs from which to sample.