org.apache.spark.mllib.clustering
Class ExpectationSum
Object
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)
|
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpectationSum
public ExpectationSum(double logLikelihood,
double[] weights,
breeze.linalg.DenseVector<Object>[] means,
breeze.linalg.DenseMatrix<Object>[] sigmas)
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()