Class PrototypeDendrogramModel

  • All Implemented Interfaces:
    Model, PrototypeModel<elki.database.ids.DBID>

    public class PrototypeDendrogramModel
    extends DendrogramModel
    implements PrototypeModel<elki.database.ids.DBID>
    Hierarchical cluster, with prototype.
    Since:
    0.7.5
    Author:
    Julian Erhard
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected elki.database.ids.DBID prototype
      Prototype of this cluster
      • Fields inherited from interface elki.data.model.Model

        TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      PrototypeDendrogramModel​(double distance, elki.database.ids.DBID prototype)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      elki.database.ids.DBID getPrototype()  
      java.lang.String getPrototypeType()
      Type of prototype (Median, Mean, ...) for printing.
      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

      • prototype

        protected elki.database.ids.DBID prototype
        Prototype of this cluster
    • Constructor Detail

      • PrototypeDendrogramModel

        public PrototypeDendrogramModel​(double distance,
                                        elki.database.ids.DBID prototype)
        Constructor.
        Parameters:
        distance - Merging distance
        prototype - Prototype
    • Method Detail

      • getPrototype

        public elki.database.ids.DBID getPrototype()
        Specified by:
        getPrototype in interface PrototypeModel<elki.database.ids.DBID>
        Returns:
        prototype
      • 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
        Specified by:
        writeToText in interface PrototypeModel<elki.database.ids.DBID>
        Overrides:
        writeToText in class DendrogramModel
        Parameters:
        out - Output steam
        label - Optional label to prefix
      • getPrototypeType

        public java.lang.String getPrototypeType()
        Description copied from interface: PrototypeModel
        Type of prototype (Median, Mean, ...) for printing.
        Specified by:
        getPrototypeType in interface PrototypeModel<elki.database.ids.DBID>
        Returns:
        String name