WithinDeltaMat            package:resper            R Documentation

_G_e_n_e_r_a_t_i_n_g _a_n _a_d_j_a_c_e_n_c_y _m_a_t_r_i_x _f_o_r |_x-_y| < _d_e_l_t_a

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

     Given a sequence of numbers and a "window" delta, the function
     generates an adjacency matrix for the elements of the sequence and
     the relation |x-y| < delta, where x and y are two elements of the
     sequence.

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

     WithinDeltaMat(seq, delta)

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

     seq: an ordered sequence of numbers 

   delta: a nonnegative number 

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

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

     A matrix of Boolean values ('TRUE' for a pair of elements whose
     distance is less than 'delta').

_N_o_t_e:

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

     Johannes Hüsing

_R_e_f_e_r_e_n_c_e_s:

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

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

     ##  this returns a Toeplitz matrix

     WithinDeltaMat(1:10, 4)

     ##  this generates a matrix from a Poisson sequence

     run <- cumsum(rgamma(100, 1))
     WithinDeltaMat(run, 3)

