|
How to change ITI dynamically during a task/session? (as opposed to a set ITI value) July 04, 2024 08:27PM | Registered: 1 year ago Posts: 10 |
ITI = Max ITI / (1 + e^(-k(Trial # - midpoint of max Trial #))) (a new ITI is calculated for each trial)
|
Re: How to change ITI dynamically during a task/session? (as opposed to a set ITI value) July 05, 2024 05:49AM | Admin Registered: 6 years ago Posts: 999 |
|
Re: How to change ITI dynamically during a task/session? (as opposed to a set ITI value) July 08, 2024 02:22PM | Registered: 1 year ago Posts: 10 |
% Logistic Function for ITI
maxITI = 10000; % Longest ITI you want in milliseconds (only approached at the final trials)
NumofTrials = 75; % How many total trials you want
k = log(maxITI)/(NumofTrials/2); % Steepness of Curve (Can be changed via addition of an arbitrary coefficient)
editable('maxITI','NumofTrials');
iti = maxITI/(1 + exp(-k*(TrialRecord.CurrentTrialNumber - (NumofTrials/2))));
set_iti(iti);The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.