sccn / clean_rawdata

Cleaning Raw EEG data
GNU General Public License v3.0
42 stars 17 forks source link

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

Closed vpKumaravel closed 2 years ago

vpKumaravel commented 4 years ago

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

arnodelorme commented 4 years ago

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?

arnodelorme commented 2 years ago

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