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, getPrototypeType
getPrototype, prototypeToString, toString
private 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)
PrototypeModel
TextWriteable
interface.writeToText
in interface Model
writeToText
in interface PrototypeModel<double[]>
writeToText
in interface TextWriteable
writeToText
in class SimplePrototypeModel<double[]>
out
- Output steamlabel
- Optional label to prefixCopyright © 2019 ELKI Development Team. License information.