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 )

