Class ExpectationSum

Object
org.apache.spark.mllib.clustering.ExpectationSum
All Implemented Interfaces:
Serializable

public class ExpectationSum extends Object implements Serializable
See Also:
  • Constructor Details

    • ExpectationSum

      public ExpectationSum(double logLikelihood, double[] weights, breeze.linalg.DenseVector<Object>[] means, breeze.linalg.DenseMatrix<Object>[] sigmas)
  • Method Details

    • zero

      public static ExpectationSum zero(int k, int d)
    • add

      public static ExpectationSum add(double[] weights, MultivariateGaussian[] dists, ExpectationSum sums, breeze.linalg.Vector<Object> x)
    • logLikelihood

      public double logLikelihood()
    • weights

      public double[] weights()
    • means

      public breeze.linalg.DenseVector<Object>[] means()
    • sigmas

      public breeze.linalg.DenseMatrix<Object>[] sigmas()
    • k

      public int k()