public abstract class AbstractSpatialSorter extends Object implements SpatialSorter
Constructor and Description |
---|
AbstractSpatialSorter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static double[] |
computeMinMax(List<? extends SpatialComparable> objs)
Compute the minimum and maximum for each dimension.
|
private double |
getMinPlusMaxObject(List<? extends SpatialComparable> objs,
int s,
int dim)
Compute getMin(dim) + getMax(dim) for the spatial object.
|
protected <T extends SpatialComparable> |
pivotizeList1D(List<T> 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.
|
<T extends SpatialComparable> |
sort(List<T> objs)
Partitions the specified feature vectors
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sort
public <T extends SpatialComparable> void sort(List<T> objs)
SpatialSorter
sort
in interface SpatialSorter
T
- actual type we sortobjs
- the spatial objects to be sortedprotected <T extends SpatialComparable> int pivotizeList1D(List<T> objs, int start, int end, int dim, double threshold, boolean desc)
T
- Object typeobjs
- List of objectsstart
- Start of sorting rangeend
- End of sorting rangedim
- Dimension to sort bythreshold
- Threshold valuedesc
- Inversion flagprivate double getMinPlusMaxObject(List<? extends SpatialComparable> objs, int s, int dim)
objs
- Objectss
- indexdim
- Dimensionalitypublic static double[] computeMinMax(List<? extends SpatialComparable> objs)
objs
- ObjectsCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.