integrate_rectangular: Rectangular (midpoint) integration

Description Usage Arguments Value

View source: R/integrate.R

Description

Rectangular (midpoint) integration

Usage

1
integrate_rectangular(x, y, correct_edges = TRUE)

Arguments

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.

Value

numeric; the approximated integral.


konradmayer/hyperSpec.utils documentation built on May 2, 2021, 4:17 a.m.