Class DiagonalGaussianModel

    • Field Detail

      • SINGULARITY_CHEAT

        private static final double SINGULARITY_CHEAT
        Constant to avoid zero values.
        See Also:
        Constant Field Values
      • mean

        double[] mean
        Mean vector.
      • variances

        double[] variances
        Per-dimension variances.
      • nmea

        double[] nmea
        Temporary storage, to avoid reallocations.
      • logNorm

        double logNorm
        Normalization factor.
      • logNormDet

        double logNormDet
        Normalization factor.
      • weight

        double weight
        Weight aggregation sum.
      • wsum

        double wsum
        Weight aggregation sum.
      • priordiag

        double[] priordiag
        Diagonal prior variances.
    • Constructor Detail

      • DiagonalGaussianModel

        public DiagonalGaussianModel​(double weight,
                                     double[] mean)
        Constructor.
        Parameters:
        weight - Cluster weight
        mean - Initial mean
      • DiagonalGaussianModel

        public DiagonalGaussianModel​(double weight,
                                     double[] mean,
                                     double[] vars)
        Constructor.
        Parameters:
        weight - Cluster weight
        mean - Initial mean
        vars - Initial variances