Skip to main content

Module rr_estimate

Module rr_estimate 

Source
Expand description

Shared respiratory-rate estimate (no training; spectral only).

Structs§

RrEstimate
Breaths-per-minute estimate with honest SNR-derived confidence.

Constants§

RR_F_HI_HZ
RR_F_LO_HZ
Adult-ish respiratory search band: 0.10–0.50 Hz → 6–30 breaths/min.
RR_MIN_SAMPLES
Minimum samples for a usable low-frequency peak (~2 s @ 30 fps is still weak; 64 is floor).
RR_MIN_SNR_DEFAULT
SNR below this → abstain (fail closed) when a gate is applied.
RR_SNR_FOR_FULL_CONF
Map SNR → confidence; conf ≈ 1 when snr ≥ this.
RR_SPECTRAL_STEPS
Spectral bins across the RR band.

Functions§

snr_to_confidence
SNR to confidence.