Rectangular (midpoint) integration
integrate_rectangular(x, y, correct_edges = TRUE)
x | numeric. |
---|---|
y | numeric. |
correct_edges | logical; if set TRUE, the widths of the segments at the range edges (the first and last point) are corrected to only incorporate the half width to the right, resp. to the left of the point. |
numeric; the approximated integral.