powered by
Integrate using trapezoidal rule
trapz(y, dt, rm.mean=TRUE)
Input signal
sample interval time, seconds
logical, whether to remove the mean prior to integration (TRUE)
vector: Integrated signal
# NOT RUN { x <- rnorm(100) trapz(x, 0.01) # }
Run the code above in your browser using DataLab