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)

