public class ExpectationSum
extends Object
implements scala.Serializable
Constructor and Description |
---|
ExpectationSum(double logLikelihood,
double[] weights,
breeze.linalg.DenseVector<Object>[] means,
breeze.linalg.DenseMatrix<Object>[] sigmas) |
Modifier and Type | Method and Description |
---|---|
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) |
public ExpectationSum(double logLikelihood, double[] weights, breeze.linalg.DenseVector<Object>[] means, breeze.linalg.DenseMatrix<Object>[] sigmas)
public static ExpectationSum zero(int k, int d)
public static ExpectationSum add(double[] weights, MultivariateGaussian[] dists, ExpectationSum sums, breeze.linalg.Vector<Object> x)
public double logLikelihood()
public double[] weights()
public breeze.linalg.DenseVector<Object>[] means()
public breeze.linalg.DenseMatrix<Object>[] sigmas()
public int k()