Package elki.result
Class SelectionResult
- java.lang.Object
-
- elki.result.SelectionResult
-
public class SelectionResult extends java.lang.ObjectSelection result wrapper. Note: we did not make the DBIDSelection a result in itself. Instead, the DBIDSelection object should be seen as static contents of this result.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DBIDSelectionselectionThe actual selection
-
Constructor Summary
Constructors Constructor Description SelectionResult()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SelectionResultensureSelectionResult(Database db)Ensure that there also is a selection container object.java.lang.StringgetLongName()DBIDSelectiongetSelection()java.lang.StringgetShortName()voidsetSelection(DBIDSelection selection)
-
-
-
Field Detail
-
selection
DBIDSelection selection
The actual selection
-
-
Method Detail
-
getSelection
public DBIDSelection getSelection()
- Returns:
- the selection
-
setSelection
public void setSelection(DBIDSelection selection)
- Parameters:
selection- the selection to set
-
getLongName
public java.lang.String getLongName()
-
getShortName
public java.lang.String getShortName()
-
ensureSelectionResult
public static SelectionResult ensureSelectionResult(Database db)
Ensure that there also is a selection container object.- Parameters:
db- Database- Returns:
- selection result
-
-