@Reference(authors="G. Peano", title="Sur une courbe, qui remplit toute une aire plane", booktitle="Mathematische Annalen 36(1)", url="http://resolver.sub.uni-goettingen.de/purl?GDZPPN002252376", bibkey="journals/mathann/Peano1890") public class PeanoSpatialSorter extends java.lang.Object implements SpatialSorter
The basic shape of this space-filling curve looks like this:
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)
| Modifier and Type | Class and Description |
|---|---|
static class |
PeanoSpatialSorter.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
static PeanoSpatialSorter |
STATIC
Static instance.
|
| Constructor and Description |
|---|
PeanoSpatialSorter()
Constructor, use
STATIC instead. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
peanoSort(java.util.List<? extends SpatialComparable> objs,
int start,
int end,
double[] mms,
int[] dims,
int depth,
long[] bits,
boolean desc)
Sort by Peano curve.
|
void |
sort(java.util.List<? extends SpatialComparable> objs,
int start,
int end,
double[] minmax,
int[] dims)
Sort part of the list (start to end).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeMinMax, sortpublic static final PeanoSpatialSorter STATIC
public PeanoSpatialSorter()
STATIC instead.public void sort(java.util.List<? extends SpatialComparable> objs, int start, int end, double[] minmax, int[] dims)
SpatialSortersort in interface SpatialSorterobjs - 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 peanoSort(java.util.List<? extends SpatialComparable> 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 © 2019 ELKI Development Team. License information.