hilbertCurve {HilbertVis} | R Documentation |
These functions calculate the Hilbert curve in its finite approximations.
hilbertCurvePoint
gives teh coordinates of one point and hilbertCurve
returns an array with the coordinates of all 4^lv
points. The
functions are not needed for hilbertImage
and only provided
for demonstration purposes. plotHilbertCurve
makes use of them.
hilbertCurve( lv ) hilbertCurvePoint( t, lv )
lv |
The iteration level. A hilbert curve of level lv spans a square with
side length 2^lv (coordinates ranging from 0 to 2^lv-1 ) and has 4^lv
points. |
t |
The point index in the Hilbert curve. Must be an integer in 0:(4^lv-1) . |
hilbertCurvePoint
returns a vector of two integer numbers, both in the range
0:(2^lv-1)
, indicating the coordinates of point t
. huilbertCurve
returns a
matrix with 4^lv
rows and 2 columns, giving all points of the curve at level lv
.
Simon Anders, EMBL-EBI, sanders@fs.tum.de
hilbertCurvePoint( 67, 4 ) hilbertCurve( 4 )