Returns peak amplitude, duration (samples), absolute area (trapezoid), up/down slopes, and peak index for a single beat.
Examples
beat <- c(0, 0.2, 0.5, 1.0, 0.6, 0.1, 0)
morie_dsp_qrs_features(beat)
#> $amplitude
#> [1] 1
#>
#> $duration
#> [1] 7
#>
#> $area
#> [1] 2.4
#>
#> $slope_up
#> [1] 0.5
#>
#> $slope_down
#> [1] -0.5
#>
#> $peak_index
#> [1] 4
#>
