Learn R Programming

RSEIS (version 2.1-6)

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
x = rnorm(100)
trapz(x, 0.01)

Run the code above in your browser using DataLab