Page 1 of 1
set_seed() in netstim
Posted: Mon Jul 23, 2007 1:05 pm
by tzahid1
I wanted to know what the function of set_seed(x) in the NetStim.mod is. What does it use to set the seed and how it does it. Also, would be possible to change the seed in the command window so that I get a different output if I wish, or would I have to write another mod file with some modifications.
Thanks.
Posted: Tue Jul 24, 2007 10:59 am
by ted
set_seed() uses its argument to seed the pseudorandom sequence generator that governs
its ISIs when noise is nonzero. If no seed is specified, a default value of 1 is used.
set_seed() is not callable directly from hoc, so it is wrapped inside PROCEDURE seed(),
which is hoc-callable. The hoc syntax for calling seed() follows the standard
objrefname.publicmembername(arglist)
syntax for invoking a public member of an object. You should test the effect of the seeds
you plan to use. Calling seed() affects the event streams generated by all NetStims.
Example:
Code: Select all
objref foo
foo = new NetStim()
foo.seed(0.3)
Posted: Tue Jul 24, 2007 12:16 pm
by tzahid1
thank you very much Ted.