respiration rate output #980
blueskynot
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to derive the respiration rate using a sliding window but I do not know how to interpret the output. My array has size 60000 data points with freq=500 and I want to calculate a window of 10 sec and hop size=2000 (4 sec) using this command
rate = nk.rsp_rate(timeseries, peaks_dict, sampling_rate=freq, method='trough', window=10, hop_size=2000,peak_method='biosppy')
However the length of 'rate' is the same size as the input 'timeseries' array (N=60000) but I would expect the size to be equal to 28 from:
num_windows = int((len(timeseries) - 5000) / 2000) + 1.
Am I using the command incorrectly?
Beta Was this translation helpful? Give feedback.
All reactions