Package elki.data.model
Class DendrogramModel
- java.lang.Object
-
- elki.data.model.DendrogramModel
-
- All Implemented Interfaces:
Model
- Direct Known Subclasses:
PrototypeDendrogramModel
public class DendrogramModel extends java.lang.Object implements Model
Model for dendrograms, provides the height of this subtree.- Since:
- 0.4.0
- Author:
- Elke Achtert
-
-
Constructor Summary
Constructors Constructor Description DendrogramModel(double distance)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDistance()
java.lang.String
toString()
void
writeToText(TextWriterStream out, java.lang.String label)
Default implementation ofTextWriteable.writeToText(elki.result.textwriter.TextWriterStream, java.lang.String)
.
-
-
-
Method Detail
-
getDistance
public double getDistance()
- Returns:
- the distance
-
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
- Parameters:
out
- Output steamlabel
- Optional label to prefix
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-