powered by
Integrate using trapezoidal rule
trapz(y, dt, rm.mean=TRUE)
vector: Integrated signal
Input signal
sample interval time, seconds
logical, whether to remove the mean prior to integration (TRUE)
Jonathan M. Lees<jonathan.lees@unc.edu>
x <- rnorm(100) trapz(x, 0.01)
Run the code above in your browser using DataLab