public class GaussianMixtureModel
extends Object
implements scala.Serializable
Multivariate Gaussian Mixture Model (GMM) consisting of k Gaussians, where points are drawn from each Gaussian i=1..k with probability w(i); mu(i) and sigma(i) are the respective mean and covariance for each Gaussian distribution i=1..k.
Constructor and Description |
---|
GaussianMixtureModel(double[] weights,
MultivariateGaussian[] gaussians) |
Modifier and Type | Method and Description |
---|---|
MultivariateGaussian[] |
gaussians() |
int |
k()
Number of gaussians in mixture
|
RDD<Object> |
predict(RDD<Vector> points)
Maps given points to their cluster indices.
|
RDD<double[]> |
predictSoft(RDD<Vector> points)
Given the input vectors, return the membership value of each vector
to all mixture components.
|
double[] |
weights() |
public GaussianMixtureModel(double[] weights, MultivariateGaussian[] gaussians)
public double[] weights()
public MultivariateGaussian[] gaussians()
public int k()