public class OrderingFromRelation extends Object implements OrderingResult
Modifier and Type | Field and Description |
---|---|
protected boolean |
ascending
Factor for ascending (+1) and descending (-1) ordering.
|
protected DoubleRelation |
scores
Outlier scores.
|
Constructor and Description |
---|
OrderingFromRelation(DoubleRelation scores)
Ascending constructor.
|
OrderingFromRelation(DoubleRelation scores,
boolean ascending)
Constructor for outlier orderings
|
Modifier and Type | Method and Description |
---|---|
DBIDs |
getDBIDs()
Get the full set of DBIDs this ordering is defined for.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
String |
getShortName()
A short name for the result, useful for file names.
|
ArrayModifiableDBIDs |
order(DBIDs ids)
Sort the given ids according to this ordering and return an iterator.
|
protected DoubleRelation scores
protected boolean ascending
public OrderingFromRelation(DoubleRelation scores, boolean ascending)
scores
- outlier score resultascending
- Ascending when true
, descending otherwisepublic OrderingFromRelation(DoubleRelation scores)
scores
- public DBIDs getDBIDs()
OrderingResult
getDBIDs
in interface OrderingResult
public ArrayModifiableDBIDs order(DBIDs ids)
OrderingResult
order
in interface OrderingResult
ids
- Collection of ids.public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.