ResperClot              package:resper              R Documentation

_S_a_m_p_l_e _f_r_o_m _a _s_e_t _o_f _t_i_m_e _w_i_n_d_o_w _r_e_s_t_r_i_c_t_e_d _p_e_r_m_u_t_a_t_i_o_n_s

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

     Sample from a set of permutations of points in time, where two
     elements cannot be juxtaposed if the lag between them is longer
     than a predefined time window

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

     ResperClot(mat)

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

     mat: A Boolean or 0-1 matrix with a ```tube'' structure  following
          the rule: 

              i<j ==> A_{i,j+1} <= A_{i,j} <= A_{i+1,j}

          (for the Boolean matrix, replace <= with ==>).  The rows and
          columns of the matrix can be interpreted as time points, and 
          corresponds to the situations where the elements are time
          points, and  a permutation is not valid if an element i
          occurs before another one j when t(i)>t(j)+delta

     . The matrix is given by the sequence and delta.

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

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

     A sequence of values corresponding to the row indices  of
     \verb+t+.

_N_o_t_e:

     The matrix is not checked for a tube structure when calling the
     function.

_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:

     'WithinDeltaMat', 'ResperByrow'

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

     ##  No element may be shifted by more than two 
     ##  positions

     mat <- toeplitz(c(rep(1,3), rep(0,3)))
     perm <- ResperClot(mat)
     perm

       

