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.