Package elki.data.model
Class MedoidModel
- java.lang.Object
-
- elki.data.model.SimplePrototypeModel<DBID>
-
- elki.data.model.MedoidModel
-
- All Implemented Interfaces:
Model
,PrototypeModel<DBID>
,TextWriteable
public class MedoidModel extends SimplePrototypeModel<DBID> implements TextWriteable
Cluster model that stores a mean for the cluster.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.data.model.SimplePrototypeModel
prototype
-
-
Constructor Summary
Constructors Constructor Description MedoidModel(DBID medoid)
Constructor with medoid
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBID
getMedoid()
java.lang.String
getPrototypeType()
Type of prototype (Median, Mean, ...) for printing.-
Methods inherited from class elki.data.model.SimplePrototypeModel
getPrototype, prototypeToString, toString, writeToText
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface elki.result.textwriter.TextWriteable
writeToText
-
-
-
-
Constructor Detail
-
MedoidModel
public MedoidModel(DBID medoid)
Constructor with medoid- Parameters:
medoid
- Cluster medoid
-
-
Method Detail
-
getMedoid
public DBID getMedoid()
- Returns:
- medoid
-
getPrototypeType
public java.lang.String getPrototypeType()
Description copied from interface:PrototypeModel
Type of prototype (Median, Mean, ...) for printing.- Specified by:
getPrototypeType
in interfacePrototypeModel<DBID>
- Overrides:
getPrototypeType
in classSimplePrototypeModel<DBID>
- Returns:
- String name
-
-