klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
4 stars 3 forks source link

Adaptive and behavior #184

Closed bartkrekelberg closed 2 years ago

bartkrekelberg commented 2 years ago

@alexanderATvision noted that if some aspect of behavior (e.g. fixation) is not completed, an adaptive parameter (e.g. staircase) should probably not be updated (even if the subject managed to give a response).

Previously this could only be achieved by setting the behavior (e.g. fixation) to be required and failEndsTrial to true. But if fail does not end the trial a response would have been processed and used to update the adaptive parameter.

This branch adds the option t add 'requiredBehaviors' to the adaptive parameter. It is backward compatible (by default there are no requiredBehaviors)

The adaptiveDemo has some text and code to explain this new option.

adammorrissirrommada commented 2 years ago

Good find. This seems OK to me.