tutorials:multiple_synaptic_state_variables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:multiple_synaptic_state_variables [2014/12/15 08:33] – zenke | tutorials:multiple_synaptic_state_variables [2016/08/18 16:58] (current) – Removes old tutorial zenke | ||
---|---|---|---|
Line 3: | Line 3: | ||
Let's assume you would like to write a plasticity model in which induced changes to a synapse require some time to percolate through. Consider that inserting for instance additional AMPA receptors into a postsynaptic density takes time... | Let's assume you would like to write a plasticity model in which induced changes to a synapse require some time to percolate through. Consider that inserting for instance additional AMPA receptors into a postsynaptic density takes time... | ||
- | ===== Aims ===== | + | **Update** As of Auryn 0.5 synapse models with multiple states can be implemented more easily using synaptic state vectors -- see for [[examples: |
- | Our aim is to introduce a meta-variable '' | ||
- | ===== Walk-through ===== | + | I still owe a tutorial for that here. The [[old complex synapse tutorial]] can be found here which describes |
- | + | ||
- | To achieve our aim we will base this tutorial | + | |
- | - We will copy and rename '' | + | |
- | - We will then insert a second [[manual: | + | |
- | - All plasticity related STDP call will then be refined to act on this new variables '' | + | |
- | - Finally we will implement an '' | + | |
- | + | ||
- | + | ||
- | ==== Copying TripletSTDPConnection source files ==== | + | |
- | + | ||
- | To prepare our new class we start by navigating to Auryn' | + | |
- | + | ||
- | <code shell> | + | |
- | zenke@cashew: | + | |
- | zenke@cashew: | + | |
- | </ | + | |
- | + | ||
- | Once the files are copied, open them in your preferred browser and replace all occurrences of '' | + | |
- | + | ||
- | Now is generally a good time to start updating the doxygen string in the header file just above the keyword '' | + | |
- | + | ||
- | + | ||
- | ==== Adding a second SimpleMatrix container ==== | + | |
- | + | ||
- | To store synaptic weights Auryn uses the class [[manual: | + | |
- | + | ||
- | First add the following line to the private variable declarations in the newly created header (.h) file | + | |
- | <code cpp> | + | |
- | private: | + | |
- | ForwardMatrix * s_matrix; | + | |
- | </ | + | |
- | Then open the .cpp file and find the function '' | + | |
- | <code cpp> | + | |
- | s_matrix = new ForwardMatrix ( w ); | + | |
- | </ | + | |
- | This tells Auryn to create a matrix and clone all its properties (such as dimensions, sparseness, etc) from '' | + | |
- | <code cpp> | + | |
- | delete s_matrix; | + | |
- | </ | + |
tutorials/multiple_synaptic_state_variables.1418632389.txt.gz · Last modified: 2014/12/15 08:33 by zenke