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 |
---|
VectorUtil.SortDBIDsBySingleDimension(Relation<? extends NumberVector> data)
Constructor.
|
VectorUtil.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
equals
private int d
private Relation<? extends NumberVector> data
public VectorUtil.SortDBIDsBySingleDimension(Relation<? extends NumberVector> data, int dim)
data
- Vector data sourcedim
- Dimension to sort bypublic 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>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.