trapz {RSEIS} | R Documentation |
Integrate using trapezoidal rule
Description
Integrate using trapezoidal rule
Usage
trapz(y, dt, rm.mean=TRUE)
Arguments
y |
Input signal |
dt |
sample interval time, seconds |
rm.mean |
logical, whether to remove the mean prior to integration (TRUE) |
Value
vector: Integrated signal
Author(s)
Jonathan M. Lees<jonathan.lees@unc.edu>
Examples
x <- rnorm(100)
trapz(x, 0.01)
[Package RSEIS version 4.2-0 Index]