Skip to contents

\(SPKI = 0.125\,PEAKI + 0.875\,SPKI\) for signal peaks and the same 1/8 recursion for noise, with detection threshold \(NPKI + 0.25(SPKI - NPKI)\) floating between them. Mirrors morie.fn.rng190.

Usage

morie_pan_tompkins_update(PEAKI, SPKI = NULL, NPKI = NULL, is_signal = NULL)

Arguments

PEAKI

peak amplitudes, processed in order.

SPKI, NPKI

running estimates.

is_signal

optional per-peak class.

Value

list: SPKI, NPKI, threshold, classified.

References

Rangayyan (2015), Ch. 4.

Examples

morie_pan_tompkins_update(c(1, 1, 0.05), SPKI = 1, NPKI = 0.05)$threshold
#> [1] 0.2875