public static class VectorUtil.SortDBIDsBySingleDimension extends java.lang.Object implements java.util.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.
|
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 sourceCopyright © 2019 ELKI Development Team. License information.