zerocrossings: Where does a signal cross zero?

View source: R/zerocrossings.R

zerocrossingsR Documentation

Where does a signal cross zero?

Description

This is a first attempt at a generic function to find zero crossings in arbitrary signals. The indices that are returned, are the samples right before the signal crosses zero, and if bounces are allowed, also the first sample of every bounce. Supposedly.

Usage

zerocrossings(v, bounces = FALSE)

Arguments

v

A numeric vector containing the signal.

bounces

A boolean: do bounces (a zero without sign change) count?

Details

?

Value

A vector with indices into 'v' where the signal will cross zero.

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.