sccn/clean_rawdata

Sample indices to retain in Clean_windows.m function might be wrong

Closed this issue · 2 comments

File: Clean_windows.m

Line 116: swz = sort(wz);

Since the Z-score values are sorted, the corresponding window indices also change. This change is probably not taken care of, leading to the wrong calculation of removed_samples (line 126).

asr_error

Please confirm. Thanks.
Best,
Velu

swz dimension seems to be (channel x window) so only channels get sorted not windows. Your comment might be right if there is only one channel. @chkothe would you mind to confirm?

I have double checked that the code is correct so closing this report.