On 4/21/2005 Luca Finelli <lfinelli@salk.edu> asked:
What's the best way to have a random number generator available
inside a mod file (can one use the syntax for Random in hoc files?).
How to use random numbers from within a mod file?
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
There are several ways to make pseudorandom sequences available
to mechanisms. The "best" way depends on the details of what
you want to do.
For example, if all you need is a point source of noisy current,
there's no need to write any NMODL code at all. Just use the
Random class's play() method to drive the current delivered by
an IClamp--read about this in the Programmer's Reference
documentation of the Random class.
If you have a voltage- or ligand-gated current, and you want to
simulate channel noise, you still don't have to write any NMODL--
the most convenient strategy is to use the Channel Builder. In
its "point process" mode, the Channel Builder does a very
efficient simulation of channel noise. Very useful for synaptic
noise, hot spots, nodes of Ranvier, somata of small neurons,
membrane patch models.
If you want stochastic variation of synaptic transmission,
where the individual responses follow a deterministic time
course, but their peak amplitudes vary from trial to trial,
see the files in this pkzip archive
http://www.neuron.yale.edu/ftp/ted/neuron/chance.zip
to mechanisms. The "best" way depends on the details of what
you want to do.
For example, if all you need is a point source of noisy current,
there's no need to write any NMODL code at all. Just use the
Random class's play() method to drive the current delivered by
an IClamp--read about this in the Programmer's Reference
documentation of the Random class.
If you have a voltage- or ligand-gated current, and you want to
simulate channel noise, you still don't have to write any NMODL--
the most convenient strategy is to use the Channel Builder. In
its "point process" mode, the Channel Builder does a very
efficient simulation of channel noise. Very useful for synaptic
noise, hot spots, nodes of Ranvier, somata of small neurons,
membrane patch models.
If you want stochastic variation of synaptic transmission,
where the individual responses follow a deterministic time
course, but their peak amplitudes vary from trial to trial,
see the files in this pkzip archive
http://www.neuron.yale.edu/ftp/ted/neuron/chance.zip
Unable to download http://www.neuron.yale.edu/ftp/chance.zip
I'd like very much to download this pkzip file, yet I can't seem to download any of the pkzip files. I'm using a Mac and accessing the ftp/ted/neuron using Safari. Other file formats (e.g., pdf and gif) download just fine. I'm sure it's something I need to do on my end, but I just haven't figured out what it is. What's the trick?
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
There's nothing magic going on here. It's just plain text inside html markup that points to a
very ordinary URL. Many NEURON users have Macs, use Safari, and browse this Forum,
but yours is the first question about how to download zip files. Maybe there's some obscure
configuration option that needs to be selected. If so, you may find it in Safari's documentation
or maybe you'll have to inquire at a Safari forum.
very ordinary URL. Many NEURON users have Macs, use Safari, and browse this Forum,
but yours is the first question about how to download zip files. Maybe there's some obscure
configuration option that needs to be selected. If so, you may find it in Safari's documentation
or maybe you'll have to inquire at a Safari forum.