de.lmu.ifi.dbs.elki.data.model
Class MeanModel<V extends FeatureVector<V,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.data.model.BaseModel
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mean
private V extends FeatureVector<V,?> mean
- Cluster mean
MeanModel
public MeanModel(V mean)
- Constructor with mean
- Parameters:
mean
- Cluster mean
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 steamlabel
- Optional label to prefix