de.lmu.ifi.dbs.elki.data.model
Class DimensionModel

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.model.BaseModel
      extended by de.lmu.ifi.dbs.elki.data.model.DimensionModel
All Implemented Interfaces:
Model, TextWriteable

public class DimensionModel
extends BaseModel
implements TextWriteable

Cluster model just providing a cluster dimensionality.


Field Summary
private  int dimension
          Number of dimensions
 
Constructor Summary
DimensionModel(Integer dimension)
          Constructor
 
Method Summary
 int getDimension()
          Get cluster dimensionality
 void setDimension(int dimension)
          Set cluster dimensionality
 void writeToText(TextWriterStream out, String label)
          Implementation of TextWriteable interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dimension

private int dimension
Number of dimensions

Constructor Detail

DimensionModel

public DimensionModel(Integer dimension)
Constructor

Parameters:
dimension - number of dimensions
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,
                        String label)
Implementation of TextWriteable interface

Specified by:
writeToText in interface TextWriteable
Overrides:
writeToText in class BaseModel
Parameters:
out - Output steam
label - Optional label to prefix

Release 0.4.0 (2011-09-20_1324)