public class ZCurveSpatialSorter extends java.lang.Object implements SpatialSorter
Modifier and Type | Class and Description |
---|---|
static class |
ZCurveSpatialSorter.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static ZCurveSpatialSorter |
STATIC
Static instance.
|
private static double |
STOPVAL
Stopping threshold.
|
Constructor and Description |
---|
ZCurveSpatialSorter()
Constructor, use
STATIC instead. |
Modifier and Type | Method and Description |
---|---|
private static double |
getMinPlusMaxObject(java.util.List<? extends SpatialComparable> objs,
int s,
int dim)
Compute getMin(dim) + getMax(dim) for the spatial object.
|
protected static int |
pivotizeList1D(java.util.List<? extends SpatialComparable> objs,
int start,
int end,
int dim,
double threshold,
boolean desc)
"Pivotize" the list, such that all elements before the given position are
less than, all elements after the position are larger than the threshold
value in the given dimension.
|
void |
sort(java.util.List<? extends SpatialComparable> objs,
int start,
int end,
double[] minmax,
int[] dims)
Sort part of the list (start to end).
|
protected void |
zSort(java.util.List<? extends SpatialComparable> objs,
int start,
int end,
double[] mms,
int[] dims,
int depth)
The actual Z sorting function
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeMinMax, sort
public static final ZCurveSpatialSorter STATIC
private static final double STOPVAL
public ZCurveSpatialSorter()
STATIC
instead.public void sort(java.util.List<? extends SpatialComparable> objs, int start, int end, double[] minmax, int[] dims)
SpatialSorter
sort
in interface SpatialSorter
objs
- 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 void zSort(java.util.List<? extends SpatialComparable> 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 dimensionprotected static int pivotizeList1D(java.util.List<? extends SpatialComparable> objs, int start, int end, int dim, double threshold, boolean desc)
objs
- List of objectsstart
- Start of sorting rangeend
- End of sorting rangedim
- Dimension to sort bythreshold
- Threshold valuedesc
- Inversion flagprivate static double getMinPlusMaxObject(java.util.List<? extends SpatialComparable> objs, int s, int dim)
objs
- Objectss
- indexdim
- DimensionalityCopyright © 2019 ELKI Development Team. License information.