de.lmu.ifi.dbs.elki.data.model
Class SubspaceAndMeanModel<V extends FeatureVector<V,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.data.model.BaseModel
de.lmu.ifi.dbs.elki.data.model.SubspaceModel<V>
de.lmu.ifi.dbs.elki.data.model.SubspaceAndMeanModel<V>
- Type Parameters:
V
- the type of FeatureVector the subspace contains
- All Implemented Interfaces:
- Model, TextWriteable
public class SubspaceAndMeanModel<V extends FeatureVector<V,?>>
- extends SubspaceModel<V>
Model for Subspace Clusters that additionally stores a mean vector.
- Author:
- Elke Achtert
Field Summary |
private V |
mean
Cluster 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.
SubspaceAndMeanModel
public SubspaceAndMeanModel(BitSet dimensions,
V mean)
- Creates a new SubspaceModel for the specified subspace.
- Parameters:
dimensions
- the subspaces of the clustermean
- the mean of the cluster
writeToText
public void writeToText(TextWriterStream out,
String label)
- Implementation of
TextWriteable
interface.
- Specified by:
writeToText
in interface TextWriteable
- Overrides:
writeToText
in class SubspaceModel<V extends FeatureVector<V,?>>
- Parameters:
out
- Output steamlabel
- Optional label to prefix