ecg_paper library

Classes

EcgScrollableWidget
A horizontally scrollable ECG “paper” widget.
EcgStyle
Style configuration for ECG rendering.

Enums

EcgUnits
Units of ECG samples provided to the widget.

Functions

decimateMinMax(List<double> s, int target) → List<double>
Min/Max bucket decimation that preserves the amplitude envelope.
ensureMilliVolt(List<double> samples) → List<double>
Ensure samples are in millivolts; if they look like volts, convert to mV.
guessUnits(List<double> samples) → EcgUnits
Guess whether incoming samples are in Volt or milliVolt by magnitude.
resampleLinear(List<double> samples, double fsSrc, double fsDst, double seconds) → List<double>
Linearly resample a sequence to fsDst over seconds.