Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double height
      Distance to child cluster
      • Fields inherited from interface elki.data.model.Model

        TYPE
    • 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​(elki.result.textwriter.TextWriterStream out, java.lang.String label)
      Default implementation of TextWriteable.writeToText(elki.result.textwriter.TextWriterStream, java.lang.String).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • height

        private double height
        Distance to child cluster
    • Constructor Detail

      • DendrogramModel

        public DendrogramModel​(double distance)
        Constructor.
        Parameters:
        distance - Distance to child cluster.
    • Method Detail

      • getDistance

        public double getDistance()
        Returns:
        the distance
      • writeToText

        public void writeToText​(elki.result.textwriter.TextWriterStream out,
                                java.lang.String label)
        Description copied from interface: Model
        Default implementation of TextWriteable.writeToText(elki.result.textwriter.TextWriterStream, java.lang.String). Note: we deliberately do not implement TextWriteable!
        Specified by:
        writeToText in interface Model
        Parameters:
        out - Output steam
        label - Optional label to prefix
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object