klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
5 stars 4 forks source link

1. Added inputParser to CIC constructor, mainly to provide an access … #133

Closed adammorrissirrommada closed 5 years ago

adammorrissirrommada commented 5 years ago

…point for controlling the RNG parameters up front, but it also allows passing in default values for trialDuration, iti, cursor, etc. myRig could be coded differently at some point to make use of this, but it's fine how it is and should be retrocompatible (defaults are as they were).

  1. Made createRNGstreams() private, so RNGs are fully set and locked down at construction.
  2. Added support for use of RNGs on the GPU using the gpuArray class (Parallel Computing Toolbox). CPU and GPU streams are independent and have identical parameters. See help text of createRNGstreams() for info