cardioception.HSD.task.trial#
- cardioception.HSD.task.trial(parameters, nTrial, confidenceRating=True, practice=False)[source]#
Run one trial of the Heartbeat Synchrony Discrimination task.
- Parameters
- parametersdict
Task parameters, from
cardioception.HSD.parameters.getParameters().- nTrialint
Trial number, written to the results and to every marker.
- confidenceRatingbool
Ask for a confidence rating after the decision.
- practicebool
A tutorial trial: the engine is not updated and nothing is kept for the output files.
- Returns
- outcomeHSDTrialOutcome
The train, the judgement and the posterior after the update. A trial whose train delivered no tone has
nDelivered == 0, no decision, and did not touch the posterior. One that delivered fewer thanTaskConfig.minTonestones is judged, but does not update the posterior either;usedandunusedReasonsay which.