Package elki.database.relation
Class RelationUtil.DescendingByDoubleRelation
- java.lang.Object
-
- elki.database.relation.RelationUtil.DescendingByDoubleRelation
-
- All Implemented Interfaces:
java.util.Comparator<DBIDRef>
- Enclosing class:
- RelationUtil
public static class RelationUtil.DescendingByDoubleRelation extends java.lang.Object implements java.util.Comparator<DBIDRef>
Sort objects by a double relation- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private DoubleRelation
scores
Scores to use for sorting.
-
Constructor Summary
Constructors Constructor Description DescendingByDoubleRelation(DoubleRelation scores)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(DBIDRef id1, DBIDRef id2)
-
-
-
Field Detail
-
scores
private final DoubleRelation scores
Scores to use for sorting.
-
-
Constructor Detail
-
DescendingByDoubleRelation
public DescendingByDoubleRelation(DoubleRelation scores)
Constructor.- Parameters:
scores
- Scores for sorting
-
-