Class ExpectationSum
Object
org.apache.spark.mllib.clustering.ExpectationSum
- All Implemented Interfaces:
- Serializable
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionExpectationSum(double logLikelihood, double[] weights, breeze.linalg.DenseVector<Object>[] means, breeze.linalg.DenseMatrix<Object>[] sigmas) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic ExpectationSumadd(double[] weights, MultivariateGaussian[] dists, ExpectationSum sums, breeze.linalg.Vector<Object> x) intk()doublebreeze.linalg.DenseVector<Object>[]means()breeze.linalg.DenseMatrix<Object>[]sigmas()double[]weights()static ExpectationSumzero(int k, int d) 
- 
Constructor Details- 
ExpectationSum
 
- 
- 
Method Details- 
zero
- 
addpublic static ExpectationSum add(double[] weights, MultivariateGaussian[] dists, ExpectationSum sums, breeze.linalg.Vector<Object> x) 
- 
logLikelihoodpublic double logLikelihood()
- 
weightspublic double[] weights()
- 
means
- 
sigmas
- 
kpublic int k()
 
-