public interface LexicographicalOrder
It defines the necessary functionalities needed to define a lexicographical ordering of k-dimensional points.
Modifier and Type | Method and Description |
---|---|
int |
compare(int[] p1,
int[] p2)
It compares two k-dimensional points.
|
int |
dimensionAt(int precedenceLevel)
It provides the dimension corresponding to the given precedence level
|
int |
getMostSignificantDimension()
This is equivalent to the call precedenceOf(0).
|
int[] |
masterOrdering()
It returns the ordering of dimensions used when no shift is applied
(i.e.
|
int |
precedenceOf(int dimension)
It provides the precedence level of the given dimension.
|
void |
setMostSignificantDimension(int d)
It shifts the lexicographical order so that the most significant dimension
is set to d.
|
int compare(int[] p1, int[] p2)
p1
- point 1p2
- point 2int precedenceOf(int dimension)
dimension
- the given dimensionint dimensionAt(int precedenceLevel)
precedenceLevel
- the given precedence levelvoid setMostSignificantDimension(int d)
d
- the dimension to be considered most significantint getMostSignificantDimension()
int[] masterOrdering()
Copyright © 2022. All rights reserved.