The condition for calculating tachogram power seems to be wrong for BVP.
cheulyop opened this issue · comments
In the below codes for extracting features from BVP and ECG signals, I found something that might be an issue and would like to ask for clarification.
While the condition for extracting tachogram features from ECG seems to be correctly defined as when length(IBI)
is not less than welch_window_size_IBI + 1
, the condition appears to be wrong for BVP as it is asking that length(IBI) < welch_window_size_**BVP** + 1
be false to compute tachogram power.
TEAP/src/signals/ECG/features/ECG_feat_extr.m
Lines 124 to 127 in b9f8d90
TEAP/src/signals/BVP/features/BVP_feat_extr.m
Lines 130 to 133 in b9f8d90
Shouldn't the condition be length(IBI) < welch_window_size_IBI + 1
for BVP as well?
Thanks for spotting this bug. This is now corrected in the hotfix branch and should be merge in master soon.