trapz: Integrate using trapezoidal rule

trapzR 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)


RSEIS documentation built on Sept. 13, 2024, 1:09 a.m.