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