Class ExpectationSum
Object
org.apache.spark.mllib.clustering.ExpectationSum
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionExpectationSum
(double logLikelihood, double[] weights, breeze.linalg.DenseVector<Object>[] means, breeze.linalg.DenseMatrix<Object>[] sigmas) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpectationSum
add
(double[] weights, MultivariateGaussian[] dists, ExpectationSum sums, breeze.linalg.Vector<Object> x) int
k()
double
breeze.linalg.DenseVector<Object>[]
means()
breeze.linalg.DenseMatrix<Object>[]
sigmas()
double[]
weights()
static ExpectationSum
zero
(int k, int d)
-
Constructor Details
-
ExpectationSum
-
-
Method Details
-
zero
-
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
-
sigmas
-
k
public int k()
-