de.lmu.ifi.dbs.elki.data.model
Class EMModel<V extends FeatureVector<V,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.data.model.BaseModel
de.lmu.ifi.dbs.elki.data.model.MeanModel<V>
de.lmu.ifi.dbs.elki.data.model.EMModel<V>
- Type Parameters:
V
- Vector type
- All Implemented Interfaces:
- Model
public class EMModel<V extends FeatureVector<V,?>>
- extends MeanModel<V>
Cluster model of an EM cluster, providing a mean and a full covariance
Matrix.
- Author:
- Erich Schubert
Constructor Summary |
EMModel(V mean,
Matrix covarianceMatrix)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
covarianceMatrix
private Matrix covarianceMatrix
- Cluster covariance matrix
EMModel
public EMModel(V mean,
Matrix covarianceMatrix)
- Constructor.
- Parameters:
mean
- Mean vectorcovarianceMatrix
- Covariance matrix
writeToText
public void writeToText(TextWriterStream out,
String label)
- Description copied from class:
BaseModel
- Implement writeToText as per
TextWriteable
interface.
However BaseModel is not given the interface directly, since
it is meant as signal to make Models printable.
- Overrides:
writeToText
in class BaseModel
- Parameters:
out
- Output steamlabel
- Optional label to prefix
getCovarianceMatrix
public Matrix getCovarianceMatrix()
- Returns:
- covariance matrix
setCovarianceMatrix
public void setCovarianceMatrix(Matrix covarianceMatrix)
- Parameters:
covarianceMatrix
- covariance matrix