#algorithm #dfa #heart-rate #data-processing #hrv #rmssd

hrv-algos

A collection of algorithms for heart rate variability analysis

5 unstable releases

new 0.4.2 Dec 31, 2024
0.4.1 Dec 31, 2024
0.4.0 Dec 31, 2024
0.3.0 Dec 29, 2024
0.1.0 Dec 25, 2024

#448 in Algorithms

Download history 154/week @ 2024-12-21 343/week @ 2024-12-28

497 downloads per month

MIT license

73KB
1K SLoC

hrv-algos

Pipeline Status codecov Crates.io

Heartrate data processing and analysis algorithms implemented in Rust.

Overview

hrv-algos is a Rust library for Heart Rate Variability (HRV) analysis. It provides a collection of algorithms for preprocessing, time-domain, frequency-domain, and nonlinear HRV metrics.

Features

  • Preprocessing: Detect and remove ectopic beats, noise filtering.
  • Time-Domain Analysis: Compute metrics like RMSSD, SDNN.
  • Nonlinear Analysis: Detrended Fluctuation Analysis (DFA), Poincaré plot analysis (SD1, SD2).

Installation

Add hrv-algos to your Cargo.toml:

cargo add hrv-algos

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

The algorithms implemented in this crate are based on the following python libraries:

Dependencies

~5.5MB
~110K SLoC