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