Questions about RELAX_metrics_blinks()
cola8yy opened this issue · comments
Hi there
The col_500ms and col_3500ms variables are constructed by the earlier lines of code to provide the values for the columns that reflect 500ms after the start of the epoch (so -1500ms relative to the blink maximum) and 3500ms after the start of the epoch (so +1500ms relative to the blink maximum), in a manner that will be accurate regardless of the sampling rate.
This enables the baseline correction line to subtract the mean of the first 500ms and last 500ms of each 4 second epoch, which is timelocked to locate the maximum of the blink artifact at the centre of the epoch. As such, the epoch is baseline corrected to the period that is not affected by the blink.
Kind regards,
Neil
Thank you for your apply. It's helpful for me!