systole.hrv.pnnX#
- systole.hrv.pnnX(rr: List | ndarray, t: int = 50, input_type: str = 'rr_ms') float [source]#
Number of successive differences larger than a value (def = 50ms).
- 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:
- nn
The proportion of successive differences larger than a value (%).