hilbertCurve           package:HilbertVis           R Documentation

_c_a_l_c_u_l_a_t_e _f_i_n_i_t_e _a_p_p_r_o_x_i_m_a_t_i_o_n_s _o_f _t_h_e _H_i_l_b_e_r_t _c_u_r_v_e

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     hilbertCurve( lv )
     hilbertCurvePoint( t, lv )

_A_r_g_u_m_e_n_t_s:

      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)'.

_V_a_l_u_e:

     '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'.

_A_u_t_h_o_r(_s):

     Simon Anders, EMBL-EBI, sanders@fs.tum.de

_S_e_e _A_l_s_o:

     'plotHilbertCurve'

_E_x_a_m_p_l_e_s:

        hilbertCurvePoint( 67, 4 )
        hilbertCurve( 4 )

