Package elki.data.model
Class CoreObjectsModel
- java.lang.Object
-
- elki.data.model.CoreObjectsModel
-
- All Implemented Interfaces:
Model
,TextWriteable
public class CoreObjectsModel extends java.lang.Object implements Model, TextWriteable
Cluster model using "core" objects. Currently only used by the Generalized DBSCAN implementation when the-gdbscan.core-model
flag is set.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description CoreObjectsModel(DBIDs core)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBIDs
getCoreObjects()
Get the core object IDs.java.lang.String
toString()
void
writeToText(TextWriterStream out, java.lang.String label)
Default implementation ofTextWriteable.writeToText(elki.result.textwriter.TextWriterStream, java.lang.String)
.
-
-
-
Field Detail
-
core
DBIDs core
Objects that are part of the cluster core.
-
-
Constructor Detail
-
CoreObjectsModel
public CoreObjectsModel(DBIDs core)
Constructor.- Parameters:
core
- Core objects
-
-
Method Detail
-
getCoreObjects
public DBIDs getCoreObjects()
Get the core object IDs.- Returns:
- Core object IDs
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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 interfaceTextWriteable
- Parameters:
out
- Output steamlabel
- Optional label to prefix
-
-