Package elki.data.model
Class EMModel
- java.lang.Object
-
- elki.data.model.SimplePrototypeModel<double[]>
-
- elki.data.model.MeanModel
-
- elki.data.model.EMModel
-
- All Implemented Interfaces:
Model,PrototypeModel<double[]>,TextWriteable
public class EMModel extends MeanModel
Cluster model of an EM cluster, providing a mean and a full covariance Matrix.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private double[][]covarianceMatrixCluster covariance matrix-
Fields inherited from class elki.data.model.SimplePrototypeModel
prototype
-
-
Constructor Summary
Constructors Constructor Description EMModel(double[] mean, double[][] covarianceMatrix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]getCovarianceMatrix()voidsetCovarianceMatrix(double[][] covarianceMatrix)java.lang.StringtoString()voidwriteToText(TextWriterStream out, java.lang.String label)Implementation ofTextWriteableinterface.-
Methods inherited from class elki.data.model.MeanModel
getMean, getPrototypeType
-
Methods inherited from class elki.data.model.SimplePrototypeModel
getPrototype, prototypeToString
-
-
-
-
Method Detail
-
writeToText
public void writeToText(TextWriterStream out, java.lang.String label)
Description copied from interface:PrototypeModelImplementation ofTextWriteableinterface.- Specified by:
writeToTextin interfaceModel- Specified by:
writeToTextin interfacePrototypeModel<double[]>- Specified by:
writeToTextin interfaceTextWriteable- Overrides:
writeToTextin classSimplePrototypeModel<double[]>- Parameters:
out- Output steamlabel- Optional label to prefix
-
getCovarianceMatrix
public double[][] getCovarianceMatrix()
- Returns:
- covariance matrix
-
setCovarianceMatrix
public void setCovarianceMatrix(double[][] covarianceMatrix)
- Parameters:
covarianceMatrix- covariance matrix
-
toString
public java.lang.String toString()
- Overrides:
toStringin classSimplePrototypeModel<double[]>
-
-