public class OrderingFromRelation extends Object implements OrderingResult
Modifier and Type | Class and Description |
---|---|
protected class |
OrderingFromRelation.ImpliedComparator
Internal comparator, accessing the map to sort objects
|
Modifier and Type | Field and Description |
---|---|
protected int |
ascending
Factor for ascending (+1) and descending (-1) ordering.
|
protected Relation<Double> |
scores
Outlier scores.
|
Constructor and Description |
---|
OrderingFromRelation(Relation<Double> scores)
Ascending constructor.
|
OrderingFromRelation(Relation<Double> 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 |
iter(DBIDs ids)
Sort the given ids according to this ordering and return an iterator.
|
protected int ascending
public OrderingFromRelation(Relation<Double> scores, boolean ascending)
scores
- outlier score resultascending
- Ascending when true
, descending otherwisepublic DBIDs getDBIDs()
OrderingResult
getDBIDs
in interface OrderingResult
public ArrayModifiableDBIDs iter(DBIDs ids)
OrderingResult
iter
in interface OrderingResult
ids
- Collection of ids.public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result