View source: R/MLMSfunctions.R
peak_area_trap | R Documentation |
peak_area_trap: function that returns the area of a peak using the integration trapezoidal rule via trapz
peak_area_trap(start.t, end.t, time.vec, int.vec)
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 |
peak area in V*s
Usage example
peak_area_trap(start.v1[1],end.v1[1],time.s,v45)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.