StimulusBlock¶
-
class
Python_modules.mmcomplexity.
StimulusBlock
(num_trials, hazard, first_source=None, sources=None, sounds=None)¶ Bases:
object
Define stimulus for a block of trials in which hazard rate is fixed
Attributes Summary
Likelihood of a sound occurring on the same side as the source
Methods Summary
generate_source_sequence
([init])Generates a sequence of sources
Attributes Documentation
-
likelihood_same_side
= 0.8¶ Likelihood of a sound occurring on the same side as the source
-
source_prior
= {'left': 0.5, 'right': 0.5}¶
Methods Documentation
-
generate_source_sequence
(init=None)¶ Generates a sequence of sources
todo: might be computationally inefficient
- Args:
init: initial source side (should be member of SIDES). If None, picked according to prior
- Returns:
sequence of source sides
-