Package elki.database.datastore
Class DataStoreUtil.AscendingByDoubleDataStoreAndId
- java.lang.Object
-
- elki.database.datastore.DataStoreUtil.AscendingByDoubleDataStoreAndId
-
- All Implemented Interfaces:
java.util.Comparator<DBIDRef>
- Enclosing class:
- DataStoreUtil
public static class DataStoreUtil.AscendingByDoubleDataStoreAndId 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 DoubleDataStore
scores
Scores to use for sorting.
-
Constructor Summary
Constructors Constructor Description AscendingByDoubleDataStoreAndId(DoubleDataStore 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 DoubleDataStore scores
Scores to use for sorting.
-
-
Constructor Detail
-
AscendingByDoubleDataStoreAndId
public AscendingByDoubleDataStoreAndId(DoubleDataStore scores)
Constructor.- Parameters:
scores
- Scores for sorting
-
-