public static class VectorUtil.SortDBIDsBySingleDimension extends Object implements Comparator<DBID>
Modifier and Type | Field and Description |
---|---|
int |
d
Dimension to sort with
|
private Relation<? extends NumberVector<?,?>> |
data
The relation to sort.
|
Constructor and Description |
---|
VectorUtil.SortDBIDsBySingleDimension(Relation<? extends NumberVector<?,?>> data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(DBID id1,
DBID id2) |
int |
getDimension()
Get the dimension to sort by
|
void |
setDimension(int d)
Set the dimension to sort by
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public int d
private Relation<? extends NumberVector<?,?>> data
public VectorUtil.SortDBIDsBySingleDimension(Relation<? extends NumberVector<?,?>> data)
data
- Vector data sourcepublic int getDimension()
public void setDimension(int d)
d
- Dimension to sort withpublic int compare(DBID id1, DBID id2)
compare
in interface Comparator<DBID>