public static class VectorUtil.SortDBIDsBySingleDimension extends Object implements Comparator<DBIDRef>
Modifier and Type | Field and Description |
---|---|
private int |
d
Dimension to sort with.
|
private Relation<? extends NumberVector> |
data
The relation to sort.
|
Constructor and Description |
---|
SortDBIDsBySingleDimension(Relation<? extends NumberVector> data)
Constructor.
|
SortDBIDsBySingleDimension(Relation<? extends NumberVector> data,
int dim)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(DBIDRef id1,
DBIDRef id2) |
int |
getDimension()
Get the dimension to sort by.
|
void |
setDimension(int d2)
Set the dimension to sort by.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
private int d
private Relation<? extends NumberVector> data
public SortDBIDsBySingleDimension(Relation<? extends NumberVector> data, int dim)
data
- Vector data sourcedim
- Dimension to sort bypublic SortDBIDsBySingleDimension(Relation<? extends NumberVector> data)
data
- Vector data sourcepublic int getDimension()
public void setDimension(int d2)
d2
- Dimension to sort withpublic int compare(DBIDRef id1, DBIDRef id2)
compare
in interface Comparator<DBIDRef>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.