28#ifndef _SYNAPSE_TYPES_EXPONENTIAL_IMPL_H_
29#define _SYNAPSE_TYPES_EXPONENTIAL_IMPL_H_
36#define SYNAPSE_TYPE_BITS 1
39#define SYNAPSE_TYPE_COUNT 2
42#define NUM_EXCITATORY_RECEPTORS 1
44#define NUM_INHIBITORY_RECEPTORS 1
83 params->exc.init_input = state->
exc.synaptic_input_value;
84 params->inh.init_input = state->
inh.synaptic_input_value;
110 switch (synapse_type_index) {
127 excitatory_response[0] = parameters->
exc.synaptic_input_value;
128 return &excitatory_response[0];
138 inhibitory_response[0] = parameters->
inh.synaptic_input_value;
139 return &inhibitory_response[0];
149 switch (synapse_type_index) {
155 log_debug(
"did not recognise synapse type %i", synapse_type_index);
167 parameters->
exc.synaptic_input_value,
168 parameters->
inh.synaptic_input_value);
void log_debug(const char *message,...)
Utilities for synapse types with exponential decays.
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
The type of exponential decay parameters.
The type of exponential decay state.
accum REAL
Type used for "real" numbers.
REAL input_t
The type of an input.
static uint n_steps_per_timestep
The number of steps to run per timestep.
static stdp_params params
Configuration parameters.
API for synaptic behaviour types (see also src/neuron/input_types)
decay_t decay
Exponential decay multiplier.
static const char * synapse_types_get_type_char(index_t synapse_type_index)
returns a human readable character for the type of synapse. examples would be X = excitatory types,...
static input_t * synapse_types_get_excitatory_input(input_t *excitatory_response, synapse_types_t *parameters)
extracts the excitatory input buffers from the buffers available for a given parameter set
static void synapse_types_add_neuron_input(index_t synapse_type_index, synapse_types_t *parameters, input_t input)
adds the inputs for a give timer period to a given neuron that is being simulated by this model
static void synapse_types_print_input(synapse_types_t *parameters)
prints the input for a neuron ID given the available inputs currently only executed when the models a...
exponential_synapse_input_buffer_regions
The supported synapse type indices.
@ INHIBITORY
Inhibitory synaptic input.
@ EXCITATORY
Excitatory synaptic input.
static void synapse_types_print_parameters(synapse_types_t *parameters)
printer call
static void synapse_types_shape_input(synapse_types_t *parameters)
decays the stuff thats sitting in the input buffers as these have not yet been processed and applied ...
static input_t * synapse_types_get_inhibitory_input(input_t *inhibitory_response, synapse_types_t *parameters)
extracts the inhibitory input buffers from the buffers available for a given parameter set
alpha_state_t inh
Inhibitory synaptic input.
alpha_params_t exc
First excitatory synaptic input.
alpha_state_t exc
Excitatory synaptic input.
Delta synapses support just a single excitatory and inhibitory input each.