Fraction of samples with |x| > threshold (defaults to 2 * sd(x)).
Usage
morie_dsp_myopulse_rate(x, threshold = NULL)
Arguments
- x
Numeric vector.
- threshold
Optional threshold.
References
Rangayyan & Krishnan (2015), Ch. 5, sec. 5.4.
Examples
set.seed(2L)
x <- rnorm(50L)
morie_dsp_myopulse_rate(x)
#> [1] 0.04