de.lmu.ifi.dbs.elki.data.model
Class DendrogramModel<D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.data.model.BaseModel
de.lmu.ifi.dbs.elki.data.model.DendrogramModel<D>
- All Implemented Interfaces:
- Model
public class DendrogramModel<D extends Distance<D>>
- extends BaseModel
Model for dendrograms, provides the distance to the child cluster.
distance
private D extends Distance<D> distance
DendrogramModel
public DendrogramModel(D distance)
getDistance
public D getDistance()
- Returns:
- the distance
writeToText
public void writeToText(TextWriterStream out,
String label)
- Implementation of
TextWriteable
interface.
- Overrides:
writeToText
in class BaseModel
- Parameters:
out
- Output steamlabel
- Optional label to prefix
toString
public String toString()
- Overrides:
toString
in class Object