Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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.SubspaceModel<V>
Type Parameters:
V - the type of FeatureVector the subspace contains
All Implemented Interfaces:
Model, TextWriteable
Direct Known Subclasses:
SubspaceAndMeanModel

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

Model for Subspace Clusters.

Author:
Erich Schubert

Field Summary
private  Subspace<V> subspace
          The subspace of the cluster.
 
Constructor Summary
SubspaceModel(BitSet dimensions)
          Creates a new SubspaceModel for a subspace of the specified dimensions.
SubspaceModel(Subspace<V> subspace)
          Creates a new SubspaceModel for the specified subspace.
 
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 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)
Creates a new SubspaceModel for the specified subspace.

Parameters:
subspace - the subspaces of the cluster

SubspaceModel

public SubspaceModel(BitSet dimensions)
Creates a new SubspaceModel for a subspace of the specified dimensions.

Parameters:
dimensions - the dimensions of the subspace
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 BaseModel
Parameters:
out - Output steam
label - Optional label to prefix

Release 0.3 (2010-03-31_1612)