19#ifndef _INPUT_TYPE_DELTA_H_
20#define _INPUT_TYPE_DELTA_H_
35 uint32_t n_steps_per_time_step) {
36 state->scale_factor =
kdivk(1.0,
kdivui(
params->time_step, n_steps_per_time_step));
39static inline void input_type_save_state(UNUSED
input_type_t *state,
53 UNUSED uint16_t num_receptors) {
65 UNUSED
state_t membrane_voltage) {
67 exc_input[i] = exc_input[i] * input_type->scale_factor;
79 UNUSED
state_t membrane_voltage) {
81 inh_input[i] = inh_input[i] * input_type->scale_factor;
accum REAL
Type used for "real" numbers.
static REAL kdivk(REAL a, REAL b)
Divides an accum by another accum.
static REAL kdivui(REAL a, uint32_t b)
Divides an accum by an unsigned integer.
REAL state_t
The type of a state variable.
REAL input_t
The type of an input.
static stdp_params params
Configuration parameters.