
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()
OrderingResultgetDBIDs in interface OrderingResultpublic ArrayModifiableDBIDs iter(DBIDs ids)
OrderingResultiter in interface OrderingResultids - Collection of ids.public String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Result