peakAreaCalculator {IDSL.IPA} | R Documentation |
peak area
Description
This function calculates area under the curve using a trapezoid method.
Usage
peakAreaCalculator(x, y)
Arguments
x |
is a vector of x values. |
y |
is a vector of y values. |
Value
A number for the integrated peak area.
Examples
data("peak_spline")
rt <- peak_spline[, 1]
int <- peak_spline[, 2]
peakAreaCalculator(rt, int)
[Package IDSL.IPA version 2.9 Index]