Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.data.model
Class EMModel<V extends RealVector<V,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.model.BaseModel
      extended by de.lmu.ifi.dbs.elki.data.model.EMModel<V>
Type Parameters:
V -
All Implemented Interfaces:
Model

public class EMModel<V extends RealVector<V,?>>
extends BaseModel

Cluster model of an EM cluster, providing a mean and a full covariance Matrix.

Author:
Erich Schubert

Field Summary
private  Matrix covarianceMatrix
          Cluster covariance matrix
private  V mean
          Cluster mean
 
Constructor Summary
EMModel(V mean, Matrix covarianceMatrix)
          Constructor.
 
Method Summary
 Matrix getCovarianceMatrix()
           
 V getMean()
           
 void setCovarianceMatrix(Matrix covarianceMatrix)
           
 void setMean(V mean)
           
 void writeToText(TextWriterStream out, String label)
          Implement writeToText as per TextWriteable interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mean

private V extends RealVector<V,?> mean
Cluster mean


covarianceMatrix

private Matrix covarianceMatrix
Cluster covariance matrix

Constructor Detail

EMModel

public EMModel(V mean,
               Matrix covarianceMatrix)
Constructor.

Parameters:
mean -
covarianceMatrix -
Method Detail

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

getMean

public V getMean()
Returns:
mean

setMean

public void setMean(V mean)
Parameters:
mean -

getCovarianceMatrix

public Matrix getCovarianceMatrix()
Returns:
covariance matrix

setCovarianceMatrix

public void setCovarianceMatrix(Matrix covarianceMatrix)
Parameters:
covarianceMatrix -

Release 0.2 (2009-07-06_1820)