
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.
|
| 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, waitequalspublic 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<?>>