examples:sim_coba_benchmark
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| examples:sim_coba_benchmark [2014/01/13 10:30] – created zenke | examples:sim_coba_benchmark [2016/07/05 23:40] (current) – typos zenke | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| To run the program the network first needs priming with external Poisson noise before it can self-sustain its activity. To do that invoke the program with the following command line arguments | To run the program the network first needs priming with external Poisson noise before it can self-sustain its activity. To do that invoke the program with the following command line arguments | ||
| <code shell> | <code shell> | ||
| - | ./ | ||
| ./ | ./ | ||
| </ | </ | ||
| The '' | The '' | ||
| + | |||
| + | If you are interested in running the code in parallel please see the [[manual: | ||
| ==== Output example ==== | ==== Output example ==== | ||
| Line 27: | Line 28: | ||
| {{ : | {{ : | ||
| - | This figure shows the rasterplot | + | This figure shows the raster plot of the spiking activity of the excitatory population written to ''/ |
| Line 33: | Line 34: | ||
| The figure shows the evolution of the membrane potential of one excitatory cell during the simulation. | The figure shows the evolution of the membrane potential of one excitatory cell during the simulation. | ||
| + | |||
| + | ===== The important bits ===== | ||
| + | <code c++> | ||
| + | TIFGroup * neurons_e = new TIFGroup( ne); | ||
| + | TIFGroup * neurons_i = new TIFGroup( ni); | ||
| + | |||
| + | neurons_e-> | ||
| + | neurons_i-> | ||
| + | </ | ||
| + | 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 '' | ||
| + | |||
| + | |||
| + | The sparse random connectivity is initialized as follows: | ||
| + | <code c++> | ||
| + | SparseConnection * con_ee | ||
| + | = new SparseConnection( neurons_e, | ||
| + | |||
| + | SparseConnection * con_ei | ||
| + | = new SparseConection( neurons_e, | ||
| + | |||
| + | SparseConnection * con_ie | ||
| + | = new SparseConnection( neurons_i, | ||
| + | |||
| + | SparseConnection * con_ii | ||
| + | = new SparseConnection( neurons_i, | ||
| + | </ | ||
| + | here '' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | The following code snipped is responsible for running the simulation for '' | ||
| + | <code c++> | ||
| + | if (!sys-> | ||
| + | errcode = 1; | ||
| + | |||
| + | if ( prime ) { | ||
| + | oss.str("" | ||
| + | oss << dir << "/ | ||
| + | sys-> | ||
| + | } | ||
| + | </ | ||
| + | The second part of the above code saves the network state if '' | ||
examples/sim_coba_benchmark.1389609018.txt.gz · Last modified: 2014/01/13 10:30 by zenke
