gm = fitgmdist(X, k)
gm = fitgmdist(X, k, Name, Value)
fitgmdist fits a Gaussian mixture model with k components to the rows of X using expectation maximization.
Name-value arguments include Start, Replicates, RegularizationValue, CovarianceType, SharedCovariance, MaxIter, TolFun, and Options.
X = [0; 1; 10; 11];
gm = fitgmdist(X, 2, 'Start', [1; 1; 2; 2]);
idx = cluster(gm, X)
| Version | Description |
|---|---|
| 2.0.0 | initial version |