beatsFromECG: A SIMPLE!!! function to extract heart beat timings from ECG...

Description Usage Arguments Details

Description

Reads the ECG signal data and applies a highpass filter to exagurate the spikes of the QRS complex. Than looks where the spikes are higher than some value and assumes that represents the R part of the ECG. Looks where the next peak is more than 25 values (100ms) away from the previous one and assumes this as the start of the next heart beat. Uses the ECG1 records. This is a simple method - better ones exist - for a quick implementation. Outputs data frame with columns representing beat times in seconds, beat timestamps and momentary heart beat values.

Usage

1
beatsFromECG(dirname, cutoffValue = 200, highpassFreq = 0.3)

Arguments

dirname

The path to the directory containing the ecgX_raw.bin files (assumes bat_adc.txt is in the same directory).

Details

Returns the start of measurement as an attribute measurementStart.


crtahlin/readCortrium documentation built on May 14, 2019, 12:05 p.m.