RapidHRV
A Python package for preprocessing, analyzing, and visualizing cardiac data
Install / Use
/learn @RHV-team/RapidHRVREADME
RapidHRV
RapidHRV is a data processing pipeline for the analysis and visualization of cardiac data.
Please provide credit where appropriate:
Kirk, P. A., Bryan, A. D., Garfinkel, S. N., & Robinson, O. J. (2022). RapidHRV: An open-source toolbox for extracting heart rate and heart rate variability. PeerJ, 10, e13147. https://doi.org/10.7717/peerj.13147
This library is distributed under an MIT License
Installation
pip install rapidhrv
Usage
Given a numpy array, or something convertable to it (such as a list),
rapidhrv.preprocess can generate input suitable for analysis with
rapidhrv.analyze, which will return a pandas dataframe containing HRV data.
import numpy as np
import rapidhrv as rhv
my_data = np.load("my_data.npy") # Load data
data = rhv.Signal(my_data, sample_rate=50) # Convert to rhv Signal class
preprocessed = rhv.preprocess(data) # Preprocess: may interpolate data, check the docstring on `rapidhrv.preprocess`
result = rhv.analyze(preprocessed) # Analyze signal
Documentation
Please see the included tutorial notebook.
Development
In order to get a working development environment,
please install Poetry for your platform,
and run poetry install to generate a virtual environment.
If you plan on making any changes to the included notebooks,
please run nbstripout --install from within the poetry venv before committing any changes.
To run said notebooks from the environment provided by poetry,
install the required dependencies with poetry install --extras notebooks.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
