Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*.gz binary
*.mat binary
*.qrs binary
*.tst binary
*.wabp binary
*.wav binary
*.wqrs binary
Expand Down
13 changes: 13 additions & 0 deletions changelog.d/bxb.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**Beat-by-beat comparison of annotations, as WFDB bxb does (development feature)**
``processing.bxb`` and ``processing.bxb_record`` compare a test annotation
file with a reference annotation file beat by beat, as the ``bxb`` program
of the WFDB Software Package does for the ANSI/AAMI EC57 and EC38
standards. The result holds the comparison matrix and the QRS, VEB and SVEB
sensitivity and positive predictivity, RMS RR interval error and shutdown
statistics, and gives the standard and line-format reports of ``bxb``.
``processing.sumstats`` combines the results of several records, as WFDB
``sumstats`` does. These functions were written from the standards and the
documentation of ``bxb``, and by comparing results with it, without
reference to its source code. They are a development feature: their
interface may change, and their results should be checked against ``bxb``
before they are used for reporting.
21 changes: 21 additions & 0 deletions docs/processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,24 @@ Annotation Evaluators
.. automodule:: wfdb.processing
:no-index:
:members: Comparitor, compare_annotations, benchmark_mitdb


Beat-by-beat Comparison
-----------------------

.. warning::

These functions are a development feature. They compare annotation
files as the ``bxb`` and ``sumstats`` programs of the WFDB Software
Package do, and were written from the ANSI/AAMI EC57 standard and the
documentation of those programs, without reference to their source code.
Their interface may change, and results should be checked against
``bxb`` before they are used for reporting.

.. automodule:: wfdb.processing
:no-index:
:members: bxb, bxb_record, sumstats

.. autoclass:: wfdb.processing.BxbResult
:members: count, matrix, statistics, rms_rr_error, shutdown_seconds,
report, line_columns, lines
1 change: 1 addition & 0 deletions src/wfdb/processing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
resample_sig,
resample_singlechan,
)
from wfdb.processing.beat_comparison import BxbResult, bxb, bxb_record, sumstats
from wfdb.processing.evaluate import (
Comparitor,
benchmark_mitdb,
Expand Down
Loading
Loading