NeilwBailey / RELAX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Questions about RELAX_metrics_blinks()

cola8yy opened this issue · comments

commented

Hello,Bailey!
I have a question about using RELAX_metrics_blinks() , I wonder why the epoch data time is only [-2 2.001]s
微信图片_20240723102545
but in #baseline correct data you use col_3500ms:size(blinkEEG.data,2)?
微信图片_20240723102550
Thank you in advance.

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

commented

Thank you for your apply. It's helpful for me!