
V - the type of FeatureVector the subspace containspublic class SubspaceModel<V extends FeatureVector<V,?>> extends MeanModel<V> implements TextWriteable
| Modifier and Type | Field and Description |
|---|---|
private Subspace<V> |
subspace
The subspace of the cluster.
|
| Constructor and Description |
|---|
SubspaceModel(Subspace<V> subspace,
V mean)
Creates a new SubspaceModel for the specified subspace with the given
cluster mean.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
private final Subspace<V extends FeatureVector<V,?>> subspace
public Subspace<V> getSubspace()
public BitSet getDimensions()
public void writeToText(TextWriterStream out, String label)
TextWriteable interface.writeToText in interface TextWriteablewriteToText in class MeanModel<V extends FeatureVector<V,?>>out - Output steamlabel - Optional label to prefix