Homer3
Homer3 copied to clipboard
yTrials output from hmrR_BlockAvg
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
@dboas I will leave this to you to close.