de.lmu.ifi.dbs.elki.data.model
Class DendrogramModel<D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.model.BaseModel
      extended by 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.


Field Summary
private  D distance
           
 
Constructor Summary
DendrogramModel(D distance)
           
 
Method Summary
 D getDistance()
           
 String toString()
           
 void writeToText(TextWriterStream out, String label)
          Implementation of TextWriteable interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

distance

private D extends Distance<D> distance
Constructor Detail

DendrogramModel

public DendrogramModel(D distance)
Method Detail

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 steam
label - Optional label to prefix

toString

public String toString()
Overrides:
toString in class Object

Release 0.4.0 (2011-09-20_1324)