public class SubspaceModel extends MeanModel implements TextWriteable
| Modifier and Type | Field and Description |
|---|---|
private Subspace |
subspace
The subspace of the cluster.
|
prototype| Constructor and Description |
|---|
SubspaceModel(Subspace subspace,
double[] mean)
Creates a new SubspaceModel for the specified subspace with the given
cluster mean.
|
| Modifier and Type | Method and Description |
|---|---|
long[] |
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,
java.lang.String label)
Implementation of
TextWriteable interface. |
getMean, getPrototypeTypegetPrototype, prototypeToString, toStringprivate final Subspace subspace
public SubspaceModel(Subspace subspace, double[] mean)
subspace - the subspace of the clustermean - the cluster meanpublic Subspace getSubspace()
public long[] getDimensions()
public void writeToText(TextWriterStream out, java.lang.String label)
PrototypeModelTextWriteable interface.writeToText in interface ModelwriteToText in interface PrototypeModel<double[]>writeToText in interface TextWriteablewriteToText in class SimplePrototypeModel<double[]>out - Output steamlabel - Optional label to prefixCopyright © 2019 ELKI Development Team. License information.