Package elki.data.model
Class PrototypeDendrogramModel
- java.lang.Object
-
- elki.data.model.DendrogramModel
-
- elki.data.model.PrototypeDendrogramModel
-
- All Implemented Interfaces:
Model
,PrototypeModel<DBID>
public class PrototypeDendrogramModel extends DendrogramModel implements PrototypeModel<DBID>
Hierarchical cluster, with prototype.- Since:
- 0.7.5
- Author:
- Julian Erhard
-
-
Constructor Summary
Constructors Constructor Description PrototypeDendrogramModel(double distance, DBID prototype)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBID
getPrototype()
java.lang.String
getPrototypeType()
Type of prototype (Median, Mean, ...) for printing.void
writeToText(TextWriterStream out, java.lang.String label)
Default implementation ofTextWriteable.writeToText(elki.result.textwriter.TextWriterStream, java.lang.String)
.-
Methods inherited from class elki.data.model.DendrogramModel
getDistance, toString
-
-
-
-
Field Detail
-
prototype
protected DBID prototype
Prototype of this cluster
-
-
Constructor Detail
-
PrototypeDendrogramModel
public PrototypeDendrogramModel(double distance, DBID prototype)
Constructor.- Parameters:
distance
- Merging distanceprototype
- Prototype
-
-
Method Detail
-
getPrototype
public DBID getPrototype()
- Specified by:
getPrototype
in interfacePrototypeModel<DBID>
- Returns:
- prototype
-
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
- Specified by:
writeToText
in interfacePrototypeModel<DBID>
- Overrides:
writeToText
in classDendrogramModel
- Parameters:
out
- Output steamlabel
- 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 interfacePrototypeModel<DBID>
- Returns:
- String name
-
-