public class OrderingFromRelation extends java.lang.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.
|
java.lang.String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
java.lang.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 java.lang.String getLongName()
Result
getLongName
in interface Result
public java.lang.String getShortName()
Result
getShortName
in interface Result
Copyright © 2019 ELKI Development Team. License information.