de.lmu.ifi.dbs.elki.data.model
Class SubspaceModel<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>
          extended by de.lmu.ifi.dbs.elki.data.model.SubspaceModel<V>
Type Parameters:
V - the type of FeatureVector the subspace contains
All Implemented Interfaces:
Model, TextWriteable

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

Model for Subspace Clusters.


Field Summary
private  Subspace<V> subspace
          The subspace of the cluster.
 
Constructor Summary
SubspaceModel(Subspace<V> subspace, V mean)
          Creates a new SubspaceModel for the specified subspace with the given cluster mean.
 
Method Summary
 BitSet getDimensions()
          Returns the BitSet that represents the dimensions of the subspace of this SubspaceModel.
 Subspace<V> getSubspace()
          Returns the subspace of this SubspaceModel.
 void writeToText(TextWriterStream out, String label)
          Implementation of TextWriteable interface.
 
Methods inherited from class de.lmu.ifi.dbs.elki.data.model.MeanModel
getMean, setMean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subspace

private final Subspace<V extends FeatureVector<V,?>> subspace
The subspace of the cluster.

Constructor Detail

SubspaceModel

public SubspaceModel(Subspace<V> subspace,
                     V mean)
Creates a new SubspaceModel for the specified subspace with the given cluster mean.

Parameters:
subspace - the subspace of the cluster
mean - the cluster mean
Method Detail

getSubspace

public Subspace<V> getSubspace()
Returns the subspace of this SubspaceModel.

Returns:
the subspace

getDimensions

public BitSet getDimensions()
Returns the BitSet that represents the dimensions of the subspace of this SubspaceModel.

Returns:
the dimensions of the subspace

writeToText

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

Specified by:
writeToText in interface TextWriteable
Overrides:
writeToText in class MeanModel<V extends FeatureVector<V,?>>
Parameters:
out - Output steam
label - Optional label to prefix

Release 0.4.0 (2011-09-20_1324)