de.lmu.ifi.dbs.elki.data.model
Class MeanModel<V extends FeatureVector<V,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.model.BaseModel
      extended by de.lmu.ifi.dbs.elki.data.model.MeanModel<V>
Type Parameters:
V - Vector type
All Implemented Interfaces:
Model, TextWriteable
Direct Known Subclasses:
EMModel, SubspaceModel

public class MeanModel<V extends FeatureVector<V,?>>
extends BaseModel
implements TextWriteable

Cluster model that stores a mean for the cluster.


Field Summary
private  V mean
          Cluster mean
 
Constructor Summary
MeanModel(V mean)
          Constructor with mean
 
Method Summary
 V getMean()
           
 void setMean(V mean)
           
 void writeToText(TextWriterStream out, String label)
          Implementation of 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 FeatureVector<V,?> mean
Cluster mean

Constructor Detail

MeanModel

public MeanModel(V mean)
Constructor with mean

Parameters:
mean - Cluster mean
Method Detail

getMean

public V getMean()
Returns:
mean

setMean

public void setMean(V mean)
Parameters:
mean - Mean vector

writeToText

public void writeToText(TextWriterStream out,
                        String label)
Implementation of TextWriteable interface.

Specified by:
writeToText in interface TextWriteable
Overrides:
writeToText in class BaseModel
Parameters:
out - Output steam
label - Optional label to prefix

Release 0.4.0 (2011-09-20_1324)