public class ZCurveSpatialSorter extends AbstractSpatialSorter
Modifier and Type | Field and Description |
---|---|
private static double |
STOPVAL |
Constructor and Description |
---|
ZCurveSpatialSorter() |
Modifier and Type | Method and Description |
---|---|
<T extends SpatialComparable> |
sort(List<T> objs,
int start,
int end,
double[] minmax,
int[] dims)
Sort part of the list (start to end).
|
protected <T extends SpatialComparable> |
zSort(List<T> objs,
int start,
int end,
double[] mms,
int[] dims,
int depth)
The actual Z sorting function
|
computeMinMax, pivotizeList1D, sort
private static final double STOPVAL
public <T extends SpatialComparable> void sort(List<T> objs, int start, int end, double[] minmax, int[] dims)
SpatialSorter
T
- actual type we sortobjs
- the spatial objects to be sortedstart
- First index to sort (e.g. 0)end
- End of range (e.g. site()
)minmax
- Array with dim pairs of (min, max) of value rangesdims
- Dimensions to sort by, for indexing vectors and minmax
.protected <T extends SpatialComparable> void zSort(List<T> objs, int start, int end, double[] mms, int[] dims, int depth)
objs
- Objects to sortstart
- Startend
- Endmms
- Min-Max value rangesdims
- Dimensions to processdepth
- Current dimension