rballunif                 package:HI                 R Documentation

_F_u_n_c_t_i_o_n _t_o _g_e_n_e_r_a_t_e _a _r_a_n_d_o_m _v_e_c_t_o_r _u_n_i_f_o_r_m_l_y _d_i_s_t_r_i_b_u_t_e_d _i_n _a _s_p_h_e_r_e

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

     Generates a random vector from a uniform distribution in a sphere
     centered at the origin

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

     rballunif(n,d)

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

       n: Dimension of the random vector to be generated

       d: Radius of the sphere

_D_e_t_a_i_l_s:

     The function is not vectorized: it is intended to generate one
     random vector at a time.

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

     An pseudo-random vector from a uniform distribution in the
     `n'-dimensional sphere centered at the origin and having radius 
     `d'

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

     Giovanni Petris GPetris@uark.edu

