sPyNNaker neural_modelling 7.1.1
Loading...
Searching...
No Matches
Data Structures | Functions
exp_synapse_utils.h File Reference

Utilities for synapse types with exponential decays. More...

#include <stdfix-exp.h>
#include <neuron/decay.h>

Go to the source code of this file.

Data Structures

struct  exp_params_t
 The type of exponential decay parameters. More...
 
struct  exp_state_t
 The type of exponential decay state. More...
 

Functions

static void decay_and_init (exp_state_t *state, exp_params_t *params, REAL time_step_ms, uint32_t n_steps_per_timestep)
 Calculate the exponential state from the exponential parameters.
 
static void exp_shaping (exp_state_t *exp_param)
 Shapes a single parameter.
 
static void add_input_exp (exp_state_t *parameter, input_t input)
 helper function to add input for a given timer period to a given neuron
 

Detailed Description

Utilities for synapse types with exponential decays.

Definition in file exp_synapse_utils.h.


Data Structure Documentation

◆ exp_params_t

struct 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

struct 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.

Function Documentation

◆ decay_and_init()

static void decay_and_init ( exp_state_t state,
exp_params_t params,
REAL  time_step_ms,
uint32_t  n_steps_per_timestep 
)
inlinestatic

Calculate the exponential state from the exponential parameters.

Parameters
[out]stateThe state to initialise
[in]paramsThe parameters to use to do the initialisation
[in]time_step_msThe time step of the simulation overall
[in]n_steps_per_timestepThe sub-stepping of the simulation

Definition at line 45 of file exp_synapse_utils.h.

◆ exp_shaping()

static void exp_shaping ( exp_state_t exp_param)
inlinestatic

Shapes a single parameter.

Parameters
[in,out]exp_paramThe parameter to shape

Definition at line 60 of file exp_synapse_utils.h.

◆ add_input_exp()

static void add_input_exp ( exp_state_t parameter,
input_t  input 
)
inlinestatic

helper function to add input for a given timer period to a given neuron

Parameters
[in,out]parameterthe parameter to update
[in]inputthe input to add.

Definition at line 70 of file exp_synapse_utils.h.