Skip to content

staircase procedure #735

Answered by jodeleeuw
dokato asked this question in Q&A
Jun 2, 2020 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

You can set the coherence parameter to be a function that returns the current value of the staircase:

var block = {
    type: "RDK",
    choices: ['z', 'm'],
    correct_choice: "z",
    coherence: function(){
	return staircase_coherence;
    },
    coherent_direction: [0],
};

If you define this value globally then you can update it in the loop_function.

If you want to avoid a global variable then you can compute the coherence directly in the function that returns it.

Replies: 2 comments 2 replies

Comment options

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

Answer selected by dokato
Comment options

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

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