T
- Data structure typepublic static interface QuickSelect.Adapter<T>
Modifier and Type | Method and Description |
---|---|
boolean |
compareGreater(T data,
int i,
int j)
Compare two elements.
|
void |
swap(T data,
int i,
int j)
Swap the two elements at positions i and j.
|
void swap(T data, int i, int j)
data
- Data structurei
- Position ij
- Position jboolean compareGreater(T data, int i, int j)
data
- Data structurei
- Position ij
- Position jtrue
when the element at position i is greater than that
at position j.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.