transformx              package:fields              R Documentation

_L_i_n_e_a_r _t_r_a_n_s_f_o_r_m_a_t_i_o_n

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

     Linear transformation of each column of a matrix. There are
     several  choices of the type of centering and scaling.

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

     transformx (x, scale.type = "unit.sd", x.center, x.scale)

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

       x: Matrix with columns to be transformed. 

scale.type: Type of transformation the default is "unit.sd": subtract
          the mean and  divide by the standard deviation.  Other 
          choices are "unscaled" (do nothing),  "range" (transform to 
          [0,1]),"user" (subtract a supplied location and divide by a
          scale). 

x.center: A vector of centering values to subtract from each column.  

 x.scale: A vector of scaling values to subtract from each column. 

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

     After deciding what the centering and scaling values should be for
     each  column of x, this function just calls the standard utility
     scale.  This function was created partly to attach the
     transformation information  as attributes to the transformed
     matrix. It is used in Krig, cover.design,  krig.image etc. to
     transform the independent variables.

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

     A matrix whose columns have between transformed. This matrix also
     has the attributes: scale.type, x.center and y.center  with the
     transformation information.

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

     scale

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

     #
     newx<-transformx( ozone$x, scale.type="range")

