peak_area_trap: peak_area_trap: function that returns the area of a peak...

View source: R/MLMSfunctions.R

peak_area_trapR Documentation

peak_area_trap: function that returns the area of a peak using the integration trapezoidal rule via trapz

Description

peak_area_trap: function that returns the area of a peak using the integration trapezoidal rule via trapz

Usage

peak_area_trap(start.t, end.t, time.vec, int.vec)

Arguments

start.t

start time of the peak

end.t

end time of the peak

time.vec

time vector of times in the interval for the peak

int.vec

intensity vector of intensity values for the peak

Value

peak area in V*s

Examples

Usage example
peak_area_trap(start.v1[1],end.v1[1],time.s,v45)

lilyacb/MLMS documentation built on July 21, 2023, 4:12 a.m.