Search found 3 matches
- Thu Oct 27, 2022 4:52 am
- Forum: NEURON hacks
- Topic: random number generator in mod files.
- Replies: 0
- Views: 26618
random number generator in mod files.
I have some equations in which one of the variable takes a random value from a gaussian distribution of known mean and variance whenever there is a netcon event. how do I incorporate this random number generator in the mod files?
- Tue Sep 13, 2022 4:09 am
- Forum: NEURON hacks
- Topic: conditional statements in DERIVATIVE block of mod files
- Replies: 3
- Views: 7398
Re: conditional statements in DERIVATIVE block of mod files
thanks, I have changed the conditions in the if statements. I am trying to implement synaptic plasticity in inhibitory synapses as stated in the article "Spike-Timing-Dependent Plasticity of Inhibitory Synapses in the Entorhinal Cortex" DOI: https://doi.org/10.1152/jn.00551.2006 . the equa...
- Mon Sep 12, 2022 9:03 am
- Forum: NEURON hacks
- Topic: conditional statements in DERIVATIVE block of mod files
- Replies: 3
- Views: 7398
conditional statements in DERIVATIVE block of mod files
can I use conditional statements (if-else if) in the DERIVATIVE block of my mod files? for example: DERIVATIVE state { if (t == (tpre + txlag)) { x' = (-x + aplus)/tauplus y' = -y/tauminus } else if (t == (tpost + tylag)){ x' = -x/tauplus y' = (-y + aminus)/tauminus } else { x' = -x/tauplus y' = -y/...