Skip to contents

R arm of morie.fn.dcsub, prdur and sactv. Dcsub: DC removal (subtract the mean). Prdur: PR intervals (QRS onset minus P onset) in seconds. Sactv: Hjorth activity, the population variance of the signal.

Usage

Dcsub(x)

Prdur(p_on, qrs_on, fs = 1)

Sactv(x)

Arguments

x

Signal.

p_on, qrs_on

Sample indices of P-wave and QRS onsets.

fs

Sampling frequency.

Value

A named list (the Python result's fields).

References

Hjorth, B. (1970). EEG analysis based on time domain properties. Electroencephalography and Clinical Neurophysiology 29, 306-310.

Rangayyan, R. M. (2015). Biomedical Signal Analysis, 2nd ed. Wiley-IEEE Press.

Examples

Dcsub(c(1, 2, 6))$filtered
#> [1] -2 -1  3
Prdur(c(100, 900), c(260, 1070), fs = 500)$value
#> [1] 0.33
Sactv(c(1, 2, 6))$value
#> [1] 4.666667