dojitter               package:adlift               R Documentation

_d_o_j_i_t_t_e_r

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

     This function adds a random uniform vector of the same length as
     the input to modify the input.

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

     dojitter(x, amount = 0)

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

       x: a vector to be jittered (e.g. a gridpoint vector). 

  amount: a value of how much to jitter the vector 'x'.

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

     The function creates 'length(x)' samples from a
     uniform['-amount','amount'], and adds these to the original vector
     'x'. If 'amount=0', the new vector 'jx' is the same as the
     original vector.

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

      jx: the jittered version of 'x'

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

     Matt Nunes (matt.nunes@bristol.ac.uk), Marina Popa
     (Marina.Popa@bristol.ac.uk)

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

     'modjitter'

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

     #create grid vector
     #
     xgrid<-seq(0,1,length=51)
     #
     xgrid
     #
     #a regularly-spaced grid
     #
     dojitter(xgrid,.01)
     #
     #a jittered grid.
     # 

