running.mean             package:igraph             R Documentation

_R_u_n_n_i_n_g _m_e_a_n _o_f _a _t_i_m_e _s_e_r_i_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     'running.mean' calculates the running mean in a vector with the
     given bin width.

_U_s_a_g_e:

     running.mean(v, binwidth)

_A_r_g_u_m_e_n_t_s:

       v: The numeric vector.

binwidth: Numeric constant, the size of the bin, should be meaningful,
          ie. smaller than the length of 'v'. 

_D_e_t_a_i_l_s:

     The running mean of 'v' is a 'w' vector of length
     'length(v)-binwidth+1'. The first element of 'w' id the average of
     the first 'binwidth' elements of 'v', the second element of 'w' is
     the average of elements '2:(binwidth+1)', etc.

_V_a_l_u_e:

     A numeric vector of length 'length(v)-binwidth+1'

_A_u_t_h_o_r(_s):

     Gabor Csardi csardi@rmki.kfki.hu

_E_x_a_m_p_l_e_s:

     running.mean(1:100, 10)

