org.apache.spark.mllib.clustering
Class ExpectationSum

Object
  extended by org.apache.spark.mllib.clustering.ExpectationSum
All Implemented Interfaces:
java.io.Serializable

public class ExpectationSum
extends Object
implements scala.Serializable

See Also:
Serialized Form

Constructor Summary
ExpectationSum(double logLikelihood, double[] weights, breeze.linalg.DenseVector<Object>[] means, breeze.linalg.DenseMatrix<Object>[] sigmas)
           
 
Method Summary
static ExpectationSum add(double[] weights, MultivariateGaussian[] dists, ExpectationSum sums, breeze.linalg.Vector<Object> x)
           
 int k()
           
 double logLikelihood()
           
 breeze.linalg.DenseVector<Object>[] means()
           
 breeze.linalg.DenseMatrix<Object>[] sigmas()
           
 double[] weights()
           
static ExpectationSum zero(int k, int d)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpectationSum

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

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()