pvt#

pypillometry.sim.tasks.pvt(duration='10 min', isi='uniform(2 s, 10 s)', rt='lognormal(300 ms, 80 ms)', p_respond=0.99, timeout='30 s')[source]#

Psychomotor vigilance task: a visual target at random intervals, which stays until the response.

Parameters:
  • duration (float, str or distribution) – duration of the task (default 10 min)

  • isi (float, str or distribution) – time from the response (or the end of the target) to the next target

  • rt (float, str or distribution) – reaction time

  • p_respond (float) – probability of a response

  • timeout (float, str or distribution) – duration of a target without response

Return type:

Task

Returns:

events target (visual, until the response) and press

Examples

The trials of the task:

>>> import pypillometry as pp
>>> fig = pp.sim.tasks.pvt().plot()
../../_images/pypillometry-sim-tasks-pvt-1.png