@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.
@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.