Cumulative Trapezoid Rule Numerical Integration using Rcpp
cumtrapzRcpp(X, Y)
X
Sorted vector of X values
Y
Vector of Y values.