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.Subspace
getSubspace()
Returns the subspace of this SubspaceModel.void
writeToText(TextWriterStream out, java.lang.String label)
Implementation ofTextWriteable
interface.-
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:PrototypeModel
Implementation ofTextWriteable
interface.- Specified by:
writeToText
in interfaceModel
- Specified by:
writeToText
in interfacePrototypeModel<double[]>
- Specified by:
writeToText
in interfaceTextWriteable
- Overrides:
writeToText
in classSimplePrototypeModel<double[]>
- Parameters:
out
- Output steamlabel
- Optional label to prefix
-
-