systole.hrv.nnX#

systole.hrv.nnX(rr: Union[List, ndarray], t: int = 50, input_type: str = 'rr_ms') int[source]#

Number of difference in successive R-R interval > t ms.

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”).

t

Threshold value: Defaut is set to 50 ms to calculate the nn50 index.

input_type

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

Returns
nnX

The number of successive differences larger than a value.