medianFilter              package:xcms              R Documentation

_A_p_p_l_y _a _m_e_d_i_a_n _f_i_l_t_e_r _t_o _a _m_a_t_r_i_x

_D_e_s_c_r_i_p_t_i_o_n:

     For each element in a matix, replace it with the median of the
     values around it.

_U_s_a_g_e:

     medianFilter(x, mrad, nrad)

_A_r_g_u_m_e_n_t_s:

       x: numeric matrix to median filter

    mrad: number of rows on either side of the value to use for median
          calculation 

    nrad: number of rows on either side of the value to use for median
          calculation 

_V_a_l_u_e:

     A matrix whose values have been median filtered

_A_u_t_h_o_r(_s):

     Colin A. Smith, csmith@scripps.edu

_E_x_a_m_p_l_e_s:

     mat <- matrix(1:25, nrow=5)
     mat
     medianFilter(mat, 1, 1)

