cardioception.HBC.task.trial#
- cardioception.HBC.task.trial(condition: str, duration: int, nTrial: int, parameters: dict) Tuple[Optional[int], Optional[float], Optional[float]] [source]#
Run one trial.
- Parameters
- conditionstr
The trial condition, can be “Rest” or “Count”.
- durationint
The lenght of the recording (in seconds).
- ntrialint
Trial number.
- parametersdict
Task parameters.
- Returns
- nCountint
The number of heartbeat estimated by the participant.
- confidenceint
The confidence in the estimation of the heartbeat provided by the participant.
- confidenceRTfloat
The response time to provide confidence rating.