Package elki.data.model
Class DimensionModel
- java.lang.Object
-
- elki.data.model.DimensionModel
-
- All Implemented Interfaces:
Model
,TextWriteable
public class DimensionModel extends java.lang.Object implements Model, TextWriteable
Cluster model additionally providing a cluster dimensionality.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description DimensionModel(int dimension)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDimension()
Get cluster dimensionalityvoid
setDimension(int dimension)
Set cluster dimensionalityvoid
writeToText(TextWriterStream out, java.lang.String label)
Default implementation ofTextWriteable.writeToText(elki.result.textwriter.TextWriterStream, java.lang.String)
.
-
-
-
Method Detail
-
getDimension
public int getDimension()
Get cluster dimensionality- Returns:
- dimensionality
-
setDimension
public void setDimension(int dimension)
Set cluster dimensionality- Parameters:
dimension
- new dimensionality
-
writeToText
public void writeToText(TextWriterStream out, java.lang.String label)
Description copied from interface:Model
Default implementation ofTextWriteable.writeToText(elki.result.textwriter.TextWriterStream, java.lang.String)
. Note: we deliberately do not implement TextWriteable!- Specified by:
writeToText
in interfaceModel
- Specified by:
writeToText
in interfaceTextWriteable
- Parameters:
out
- Output steamlabel
- Optional label to prefix
-
-