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[][]
covarianceMatrix
Cluster 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()
void
setCovarianceMatrix(double[][] covarianceMatrix)
java.lang.String
toString()
void
writeToText(TextWriterStream out, java.lang.String label)
Implementation ofTextWriteable
interface.-
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:PrototypeModel
Implementation ofTextWriteable
interface.- Specified by:
writeToText
in interfaceModel
- Specified by:
writeToText
in interfacePrototypeModel<double[]>
- Specified by:
writeToText
in interfaceTextWriteable
- Overrides:
writeToText
in 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:
toString
in classSimplePrototypeModel<double[]>
-
-