intg                 package:PROcess                 R Documentation

_I_n_t_e_g_r_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     This function calculates the integration of y with respect to x.

_U_s_a_g_e:

     intg(y, x)

_A_r_g_u_m_e_n_t_s:

       x: a vector of real values, not necessarily sorted.

       y: a vector of function values at x.

_D_e_t_a_i_l_s:

     (x,y)s are sorted according to ascending x values and then the
     integration is calculated as sum of the products of average of
     adjacent y values and the difference of adjacent x values.

_A_u_t_h_o_r(_s):

     Xiaochun Li

_E_x_a_m_p_l_e_s:

     x <- seq(0, 1,length=100)
     y <- x^2
     intg(y, x)

