streamsim.src.examples.ecg_demo module

ECG R-Peak Detection Demonstration Script.

streamsim.src.examples.ecg_demo.run_rpeak_example()[source]

Executes the R-Peak Detection demonstration pipeline.

This function initializes all components required for the simulation, configures the visualization parameters, and starts the streaming loop. It blocks execution until the user closes the Matplotlib window.

Components Initialized:
  • Data Source: Synthetic ECG signal generator.

  • Feature Deriver: RPeakFeatureDeriver for heartbeat detection.

  • Detector: PeakPassThrough (specialized logic).

  • Renderer: RPeakRenderer (blue signal, green peaks).

Example

>>> run_rpeak_example()
Running R-Peak Detection...
# [Matplotlib window opens with live ECG data]