Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

trapz

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)

RSEIS

Seismic Time Series Analysis Tools

v3.9-3
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Jake Anderson [ctb], Leonard Lisapaly [ctb], Dave Harris [aut, cph]
Initial release
2020-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.