Learn R Programming

RSEIS (version 3.7-4)

trapz: Integrate using trapezoidal rule

Description

Integrate using trapezoidal rule

Usage

trapz(y, dt)

Arguments

y

Input signal

dt

sample interval time, seconds

Value

vector: Integrated signal

Examples

Run this code
# NOT RUN {
x <- rnorm(100)
trapz(x, 0.01)

# }

Run the code above in your browser using DataLab