public class DimensionModel extends BaseModel implements TextWriteable
Modifier and Type | Field and Description |
---|---|
private int |
dimension
Number of dimensions
|
Constructor and Description |
---|
DimensionModel(Integer dimension)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getDimension()
Get cluster dimensionality
|
void |
setDimension(int dimension)
Set cluster dimensionality
|
void |
writeToText(TextWriterStream out,
String label)
Implementation of
TextWriteable interface |
public DimensionModel(Integer dimension)
dimension
- number of dimensionspublic int getDimension()
public void setDimension(int dimension)
dimension
- new dimensionalitypublic void writeToText(TextWriterStream out, String label)
TextWriteable
interfacewriteToText
in interface TextWriteable
writeToText
in class BaseModel
out
- Output steamlabel
- Optional label to prefix