public static class VectorUtil.SortVectorsBySingleDimension extends Object implements Comparator<NumberVector>
Modifier and Type | Field and Description |
---|---|
private int |
d
Dimension to sort with.
|
Constructor and Description |
---|
VectorUtil.SortVectorsBySingleDimension()
Constructor.
|
VectorUtil.SortVectorsBySingleDimension(int dim)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(NumberVector o1,
NumberVector o2) |
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
public VectorUtil.SortVectorsBySingleDimension(int dim)
dim
- Dimension to sort by.public VectorUtil.SortVectorsBySingleDimension()
public int getDimension()
public void setDimension(int d2)
d2
- Dimension to sort withpublic int compare(NumberVector o1, NumberVector o2)
compare
in interface Comparator<NumberVector>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.