Skip to contents

Returns peak amplitude, duration (samples), absolute area (trapezoid), up/down slopes, and peak index for a single beat.

Usage

morie_dsp_qrs_features(beat)

Arguments

beat

Numeric vector covering one beat.

Value

Named list of features.

References

Rangayyan & Krishnan (2015), Ch. 5, sec. 5.9.

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