Package elki.data.model
Class SubspaceModel
- java.lang.Object
-
- elki.data.model.SimplePrototypeModel<double[]>
-
- elki.data.model.MeanModel
-
- elki.data.model.SubspaceModel
-
- All Implemented Interfaces:
Model,PrototypeModel<double[]>,TextWriteable
public class SubspaceModel extends MeanModel implements TextWriteable
Model for Subspace Clusters.- Since:
- 0.3
- Author:
- Erich Schubert, Elke Achtert
-
-
Constructor Summary
Constructors Constructor Description SubspaceModel(Subspace subspace, double[] mean)Creates a new SubspaceModel for the specified subspace with the given cluster mean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]getDimensions()Returns the BitSet that represents the dimensions of the subspace of this SubspaceModel.SubspacegetSubspace()Returns the subspace of this SubspaceModel.voidwriteToText(TextWriterStream out, java.lang.String label)Implementation ofTextWriteableinterface.-
Methods inherited from class elki.data.model.MeanModel
getMean, getPrototypeType
-
Methods inherited from class elki.data.model.SimplePrototypeModel
getPrototype, prototypeToString, toString
-
-
-
-
Field Detail
-
subspace
private final Subspace subspace
The subspace of the cluster.
-
-
Constructor Detail
-
SubspaceModel
public SubspaceModel(Subspace subspace, double[] mean)
Creates a new SubspaceModel for the specified subspace with the given cluster mean.- Parameters:
subspace- the subspace of the clustermean- the cluster mean
-
-
Method Detail
-
getSubspace
public Subspace getSubspace()
Returns the subspace of this SubspaceModel.- Returns:
- the subspace
-
getDimensions
public long[] 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, java.lang.String label)
Description copied from interface:PrototypeModelImplementation ofTextWriteableinterface.- Specified by:
writeToTextin interfaceModel- Specified by:
writeToTextin interfacePrototypeModel<double[]>- Specified by:
writeToTextin interfaceTextWriteable- Overrides:
writeToTextin classSimplePrototypeModel<double[]>- Parameters:
out- Output steamlabel- Optional label to prefix
-
-