Count of |diff(x)| > threshold (defaults to sd(x)).
Usage
morie_dsp_willison_amplitude(x, threshold = NULL)
Arguments
- x
Numeric vector.
- threshold
Optional threshold (default sd(x)).
References
Rangayyan & Krishnan (2015), Ch. 5, sec. 5.4.
Examples
set.seed(1L)
x <- rnorm(50L)
morie_dsp_willison_amplitude(x)
#> [1] 29