This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
examples:sim_coba_benchmark [2015/11/18 19:04] zenke Removes the full program section --- too hard to maintain |
examples:sim_coba_benchmark [2016/07/06 01:40] (current) zenke typos |
||
---|---|---|---|
Line 43: | Line 43: | ||
neurons_i->random_mem(-70e-3,10e-3); | neurons_i->random_mem(-70e-3,10e-3); | ||
</code> | </code> | ||
- | This part instatiates two groups of neurons of type [[TIFGroup]] which corresponds to the conductance based model with exponentially decaying PSCs and an absolute refractoriness of 5ms. The ''random_mem'' methods randomize the initial membrane potentials with a Gaussian (mean=-70mV and standard deviation 10mV). | + | This part instantiates two groups of neurons of type [[TIFGroup]] which corresponds to the conductance based model with exponentially decaying PSCs and an absolute refractoriness of 5ms. The ''random_mem'' methods randomize the initial membrane potentials with a Gaussian (mean=-70mV and standard deviation 10mV). |
Line 65: | Line 65: | ||
- | The folling code snipped is responsible for running the simulation for ''simtime'' seconds. The second parameter ''true'' indicates that we wan the simulation to be interrupted if the [[RateChecker]] detects too high firing rates, which usually suggests that something is going wrong. | + | The following code snipped is responsible for running the simulation for ''simtime'' seconds. The second parameter ''true'' indicates that we wan the simulation to be interrupted if the [[RateChecker]] detects too high firing rates, which usually suggests that something is going wrong. |
<code c++> | <code c++> | ||
if (!sys->run(simtime,true)) | if (!sys->run(simtime,true)) |