Utilities for synapse types with exponential decays.
More...
Go to the source code of this file.
Utilities for synapse types with exponential decays.
Definition in file exp_synapse_utils.h.
◆ exp_params_t
The type of exponential decay parameters.
Definition at line 26 of file exp_synapse_utils.h.
Data Fields |
REAL |
tau |
The decay time constant. |
REAL |
init_input |
The initial value. |
◆ exp_state_t
The type of exponential decay state.
Definition at line 34 of file exp_synapse_utils.h.
Data Fields |
decay_t |
decay |
Decay multiplier per timestep. |
decay_t |
init |
Initial decay factor. |
input_t |
synaptic_input_value |
The actual synaptic contribution. |
◆ decay_and_init()
Calculate the exponential state from the exponential parameters.
- Parameters
-
[out] | state | The state to initialise |
[in] | params | The parameters to use to do the initialisation |
[in] | time_step_ms | The time step of the simulation overall |
[in] | n_steps_per_timestep | The sub-stepping of the simulation |
Definition at line 45 of file exp_synapse_utils.h.
◆ exp_shaping()
Shapes a single parameter.
- Parameters
-
[in,out] | exp_param | The parameter to shape |
Definition at line 60 of file exp_synapse_utils.h.
◆ add_input_exp()
helper function to add input for a given timer period to a given neuron
- Parameters
-
[in,out] | parameter | the parameter to update |
[in] | input | the input to add. |
Definition at line 70 of file exp_synapse_utils.h.