carrien / free-speech

Analysis and plotting code for speech neuroimaging experiments.
MIT License
4 stars 5 forks source link

New functionality for randomize_stimuli #38

Closed rpkarlin closed 2 years ago

rpkarlin commented 2 years ago

This adds to randomize_stimuli with the flag bAlternatePnp to do two different types of randomization. The default behavior is what the function originally did. The new behavior (which has to be explicitly flagged) does not require that any perturbed trial be flanked by an unperturbed trial, but only cares that no adjacent trials share word or condition.

Also a couple of minor aesthetic changes (such as informing the participant that washout/baseline trials are not a good number). Includes documentation.