Units#
- class pypillometry.sim.Units(median=1000.0)[source]#
Bases:
SimStepUnits of the tracker: the pupil is \(\text{median} \cdot e^{y / 100}\) for the signal \(y\) in log-%.
- Parameters:
median (
float) – median pupil size in the units of the tracker (per eye with a dict); default 1000
Notes
Ground truth per eye:
size(the true pupil size) andpupil(the pupil as measured without noise, i.e. with the foreshortening).Methods
change the arrays of the running simulation run
the eyes of the simulation the step applies to
the step from
to_dict()the events and the duration (ms), for steps of stage
"events"name and parameters of the step (numbers, strings, lists, dicts)
Details
- generate(rng)#
the events and the duration (ms), for steps of stage
"events"