You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I think the baseline of each trial is set to zero based on the mean of the average baseline. The result is that, for example, when plotting the yTrial results, their baselines are not centered around zero.
Should the mean of the baseline of each trial be substracted from each trial?
My suggestion, for example (lines 109:111 of hmrR_BlockAvg):
for iBlk = 1:nBlk
foom_temp = ones(size(yTrials(iC).yblk,1),1)*mean(yTrials(iC).yblk(1:-nPre,:,ii,iBlk),1);
yTrials(iC).yblk(:,:,ii,iBlk) = yTrials(iC).yblk(:,:,ii,iBlk) - foom_temp;
end
Tried it in Homer2 and seems to work. Not sure though if there were other reasons for it being computed like that. Sorry in case I misunderstood.
Thank you
The text was updated successfully, but these errors were encountered:
Hi
I think the baseline of each trial is set to zero based on the mean of the average baseline. The result is that, for example, when plotting the yTrial results, their baselines are not centered around zero.
Should the mean of the baseline of each trial be substracted from each trial?
My suggestion, for example (lines 109:111 of hmrR_BlockAvg):
for iBlk = 1:nBlk
foom_temp = ones(size(yTrials(iC).yblk,1),1)*mean(yTrials(iC).yblk(1:-nPre,:,ii,iBlk),1);
yTrials(iC).yblk(:,:,ii,iBlk) = yTrials(iC).yblk(:,:,ii,iBlk) - foom_temp;
end
Tried it in Homer2 and seems to work. Not sure though if there were other reasons for it being computed like that. Sorry in case I misunderstood.
Thank you
The text was updated successfully, but these errors were encountered: