cardioception.HRD.task.trial#
- cardioception.HRD.task.trial(parameters, alpha, modality, confidenceRating=True, feedback=False, nTrial=None)[source]#
Run one trial of the Heart Rate Discrimination task.
- Parameters
- parameterdict
Task parameters.
- alphafloat
The intensity of the stimulus, from the staircase procedure.
- modalitystr
The modality, can be ‘Intero’ or ‘Extro’ if an exteroceptive control condition has been added.
- confidenceRatingboolean
If False, do not display confidence rating scale.
- feedbackboolean
If True, will provide feedback.
- nTrialint
Trial number (optional).
- Returns
- outcomeTrialOutcome
Everything the trial measured: the condition, the heard and delivered rates, the decision and whether it was correct, the confidence rating, and the six timestamps. The field names are the results file’s column names – see
cardioception.HRD._outcome.TrialOutcome, whoserow()is the only place that decides what a row contains.