ma3x3                 package:limma                 R Documentation

_T_w_o _d_i_m_e_n_s_i_o_n_a_l _M_o_v_i_n_g _A_v_e_r_a_g_e_s _w_i_t_h _3_x_3 _W_i_n_d_o_w

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

     Apply a specified function to each to each value of a matrix and
     its immediate neighbors.

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

     ma3x3.matrix(x,FUN=mean,na.rm=TRUE,...)
     ma3x3.spottedarray(x,printer,FUN=mean,na.rm=TRUE,...)

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

       x: numeric matrix

     FUN: function to apply to each window of values

   na.rm: logical value, should missing values be removed when applying
          'FUN'

     ...: other arguments are passed to 'FUN'

 printer: list giving the printer layout, see 'PrintLayout-class'

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

     For 'ma3x3.matrix', 'x' is an arbitrary function. for
     'ma3x3.spotted', each column of 'x' is assumed to contain the
     expression values of a spotted array in standard order. The
     printer layout information is used to re-arrange the values of
     each column as a spatial matrix before applying 'ma3x3.matrix'.

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

     Numeric matrix of same dimension as 'x' containing smoothed values

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

     Gordon Smyth

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

     An overview of functions for normalization and background
     correction are given in '4.Normalization'.

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

     x <- matrix(c(2,5,3,1,6,3,10,12,4,6,4,8,2,1,9,0),4,4)
     ma3x3.matrix(x,FUN="mean")
     ma3x3.matrix(x,FUN="min")

