Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.data.model
Class SubspaceAndMeanModel<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.SubspaceModel<V>
          extended by 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.
 
Constructor Summary
SubspaceAndMeanModel(BitSet dimensions, V mean)
          Creates a new SubspaceModel for the specified subspace.
 
Method Summary
 void writeToText(TextWriterStream out, String label)
          Implementation of TextWriteable interface.
 
Methods inherited from class de.lmu.ifi.dbs.elki.data.model.SubspaceModel
getDimensions, getSubspace
 
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

SubspaceAndMeanModel

public SubspaceAndMeanModel(BitSet dimensions,
                            V mean)
Creates a new SubspaceModel for the specified subspace.

Parameters:
dimensions - the subspaces of the cluster
mean - the mean of the cluster
Method Detail

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 steam
label - Optional label to prefix

Release 0.3 (2010-03-31_1612)