I try to figure out the role of the AdaptCode in the system. I use the ARSignalProcessing and the D2Box. I use the following code to log most parameters and variables in the StatFilter. I added the code to the end of StatFilter::Process(), right before *output = *input.
Code: Select all
bciout << "adapt code: " << AdaptCode << endl;
fprintf(Statfile,"%1d\t%1d\t%7.3f\t%7.3f\t%7.3f\t%7.3f\t%7.3f\t%1d\t%1d\t%1d\t%1d\t%7.4f\t%7.4f\t%d\t%d\t%d\t%d\n",
CurrentTarget,CurrentOutcome,
ud_gain, lr_gain, yintercept, xintercept,
WtRate, cur_ystat.pix, cur_xstat.pix,
cur_ystat.trial_flag, cur_xstat.trial_flag,
cur_ystat.aper,cur_xstat.aper,
Xadapt,Yadapt,AdaptCode,OutcomeCode);
fflush( Statfile );
For the comparisons in the earlier lines (within the if(WtControl > 1){..} statement) also only values for AdaptCode > 0 are considered. I do not get values for AdaptCode other than 1 and -1 in my logfile. Also if I use two control signals.
I do not fully understand the meaning of AdaptCode. I cannot figure it out via this 'reverse engineering'. Could anyone explain the parameter, and why I get these somewhat strange readings in my log-file and warnings.
Thanks in advance,
Pieter Laurens Baljon
University of Groningen
