systole.hrv.rmssd#

systole.hrv.rmssd(rr: List | ndarray, input_type: str = 'rr_ms') float[source]#

Root Mean Square of Successive Differences.

Parameters:
rr

R-R interval time-series, peaks or peaks index vectors. The default expected vector is R-R intervals in milliseconds. Other data format can be provided by specifying the “input_type” (can be “rr_s”, “peaks” or “peaks_idx”).

input_type

The type of input provided. Can be “peaks”, “peaks_idx”, “rr_ms” or “rr_s”. Defaults to “rr_ms”.

Returns:
y

The Root Mean Square of Successive Differences (RMSSD).

Examples

>>> rr = [800, 850, 810, 720]
>>> rmssd(rr)
63.77042156569664