Package elki.clustering.em.models
Class TextbookMultivariateGaussianModelFactory
- java.lang.Object
-
- elki.clustering.em.models.TextbookMultivariateGaussianModelFactory
-
- All Implemented Interfaces:
EMClusterModelFactory<NumberVector,EMModel>
public class TextbookMultivariateGaussianModelFactory extends java.lang.Object implements EMClusterModelFactory<NumberVector,EMModel>
Factory for EM with multivariate Gaussian model, using the textbook algorithm. There is no reason to use this in practice, it is only useful to study the reliability of the textbook approach."Textbook" refers to the E[XY]-E[X]E[Y] equation for covariance, that is numerically not reliable with floating point math, but popular in textbooks.
Again, do not use this. Always prefer
MultivariateGaussianModelFactory
.- Since:
- 0.7.5
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected KMeansInitialization
initializer
Class to choose the initial means-
Fields inherited from interface elki.clustering.em.models.EMClusterModelFactory
INIT_ID
-
-
Constructor Summary
Constructors Constructor Description TextbookMultivariateGaussianModelFactory(KMeansInitialization initializer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TextbookMultivariateGaussianModel>
buildInitialModels(Relation<? extends NumberVector> relation, int k)
Build the initial models
-
-
-
Field Detail
-
initializer
protected KMeansInitialization initializer
Class to choose the initial means
-
-
Constructor Detail
-
TextbookMultivariateGaussianModelFactory
public TextbookMultivariateGaussianModelFactory(KMeansInitialization initializer)
Constructor.- Parameters:
initializer
- Class for choosing the initial seeds.
-
-
Method Detail
-
buildInitialModels
public java.util.List<TextbookMultivariateGaussianModel> buildInitialModels(Relation<? extends NumberVector> relation, int k)
Description copied from interface:EMClusterModelFactory
Build the initial models- Specified by:
buildInitialModels
in interfaceEMClusterModelFactory<NumberVector,EMModel>
- Parameters:
relation
- Relationk
- Number of clusters- Returns:
- Initial models
-
-