trapz | R Documentation |
Integrate using trapezoidal rule
trapz(y, dt, rm.mean=TRUE)
y |
Input signal |
dt |
sample interval time, seconds |
rm.mean |
logical, whether to remove the mean prior to integration (TRUE) |
vector: Integrated signal
Jonathan M. Lees<jonathan.lees@unc.edu>
x <- rnorm(100)
trapz(x, 0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.