@Reference(authors="G. Peano", title="Sur une courbe, qui remplit toute une aire plane", booktitle="Mathematische Annalen, 36(1)") public class PeanoSpatialSorter extends AbstractSpatialSorter
3---4 9 | | | 2 5 8 | | | 1 6---7Which then expands to the next level as:
+-+ +-+ +-+ +-+ E | | | | | | | | | | +-+ +-+ | | +-+ | | | | +-+ +-+ | | +-+ | | | | | | | | | +-+ | | +-+ +-+ | | | | +-+ | | +-+ +-+ | | | | | | | | | | S +-+ +-+ +-+ +-+and so on. Reference:
G. Peano
Sur une courbe, qui remplit toute une aire plane
Mathematische Annalen, 36(1)
Constructor and Description |
---|
PeanoSpatialSorter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends SpatialComparable> |
peanoSort(List<T> objs,
int start,
int end,
double[] mms,
int[] dims,
int depth,
long[] bits,
boolean desc)
Sort by Peano curve.
|
<T extends SpatialComparable> |
sort(List<T> objs,
int start,
int end,
double[] minmax,
int[] dims)
Sort part of the list (start to end).
|
computeMinMax, pivotizeList1D, sort
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 peanoSort(List<T> objs, int start, int end, double[] mms, int[] dims, int depth, long[] bits, boolean desc)
objs
- Objectsstart
- Start indexend
- Endmms
- Minmax valuesdims
- Dimensions indexdepth
- Dimensionbits
- Bit set for inversionsdesc
- Current orderingCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.