detectUps: Detect the positive deflection of a ttl pulse in a vector

Description Usage Arguments Value Examples

View source: R/Ttl.R

Description

Detect the positive deflection of a ttl pulse in a vector

Usage

1
detectUps(x, threshold = 10000)

Arguments

x

numeric vector containing the data

threshold

amplitude of the positive deflections to be considered

Value

indices at which the positive deflections were detected in x

Examples

1
 detectUps(x=c(rep(0,10),rep(20000,10)))

kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.