Skip to content

Jittering fixation durations #829

Answered by becky-gilbert
ssyoon asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can do this using a function for the fixation's duration parameter. There's one example here: https://www.jspsych.org/tutorials/rt-task/#part-7-using-functions-to-generate-parameters

And here's another example for writing a function that will randomize between 2 and 4 seconds:

var fixation = {
  ...
  trial_duration: function() {
    var rand_iti = Math.floor(Math.random() * (4000 - 2000)) + 2000;
    return rand_iti;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ssyoon
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants