
public static class VectorUtil.SortDBIDsBySingleDimension extends Object implements Comparator<DBIDRef>
| Modifier and Type | Field and Description | 
|---|---|
| private int | dDimension to sort with. | 
| private Relation<? extends NumberVector<?>> | dataThe relation to sort. | 
| Constructor and Description | 
|---|
| VectorUtil.SortDBIDsBySingleDimension(Relation<? extends NumberVector<?>> data)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, waitequalsprivate int d
private Relation<? extends NumberVector<?>> data
public VectorUtil.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>