systole.hrv.psd#

systole.hrv.psd(rr: List | ndarray, sfreq: int = 5, method: str = 'welch', input_type: str = 'rr_ms') Tuple[ndarray, ndarray][source]#

Extract the frequency domain features of heart rate variability.

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

sfreq

The sampling frequency (Hz) of the interpolated instantaneous heart rate.

method

The method used to extract freauency power. Default is 'welch'.

input_type

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

Returns:
freq, power

The frequency and power spectral density of the given signal.

See also

frequency_domain