Homer3 icon indicating copy to clipboard operation
Homer3 copied to clipboard

yTrials output from hmrR_BlockAvg

Open AdrianCMar opened this issue 5 years ago • 1 comments

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

AdrianCMar avatar Jan 17 '20 14:01 AdrianCMar

@dboas I will leave this to you to close.

sstucker avatar Dec 01 '21 19:12 sstucker