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

Tobias-Ruff/relectro_bak documentation built on May 3, 2019, 6:43 p.m.