Prerequisites: Python3.15.2 and Docker (tested). From this extracted directory:
python fetch_mitdb.py
python get_wfdb.py
docker build -t gebrabit-medical-wfdb:10.7.0 .
docker run --rm --network none -v "${PWD}:/work" gebrabit-medical-wfdb:10.7.0 gcc -std=c11 -Wall -Wextra -Wpedantic -Werror -O2 -I/opt/wfdb/include qrs_baseline.c /opt/wfdb/lib/libwfdb.a -lm -o qrs_baseline
docker run --rm --network none -v "${PWD}:/work" gebrabit-medical-wfdb:10.7.0 gcc -std=c11 -Wall -Wextra -Wpedantic -Werror -O2 -I/opt/wfdb/include export_reference.c /opt/wfdb/lib/libwfdb.a -lm -o export_reference
python evaluate_qrs.py
Commands above use PowerShell bind syntax; Linux bash use -v "$PWD:/work". Run synthetic tests: docker run --rm --network none -v "${PWD}:/work" gebrabit-medical-wfdb:10.7.0 ./qrs_baseline --selftest
KNOWN FAILURE, frozen teaching baseline: a20s syntheticfixture with a flat initial2s and16clear beat centres at4s..19s yields0detections. Offline centered filters use future samples, not real-time. Four records only, not full MIT-BIH or clinical validation. HR error is conditional on consecutive matched pairs; coverage must accompany it. Runtime includes Docker startup/file I/O and varies by host. Compilation/runtime results are recorded; no physical instrument test.

Independent failure/invariance fixture (samePowerShellmount):
docker run --rm --network none -v "${PWD}:/work" gebrabit-medical-wfdb:10.7.0 gcc -std=c11 -Wall -Wextra -Wpedantic -Werror -O2 -I/opt/wfdb/include independent_qrs_fixture.c /opt/wfdb/lib/libwfdb.a -lm -o independent_qrs_fixture
docker run --rm --network none -v "${PWD}:/work" gebrabit-medical-wfdb:10.7.0 ./independent_qrs_fixture
WFDB library source headers state GNU Library General Public License version2 or later; the complete fetched package preserves its ownCOPYING/notices. The original two project C files are independently offeredGPL3-or-later, whose actual fullversion3text accompanies this package. NoWFDBlibrary binary or source is redistributed in this ZIP.
