19#ifndef _THRESHOLD_TYPE_STOCHASTIC_H_
20#define _THRESHOLD_TYPE_STOCHASTIC_H_
27#define PROB_SATURATION 0.8k
56static volatile REAL ten = 10k;
85 if (exponent < 5.0k) {
87 result = (1.0k -
expk(hazard *
unsigned accum UREAL
Type used for "unsigned real" numbers.
#define REAL_COMPARE(x, op, y)
Compare two REAL numbers.
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.
static uint n_steps_per_timestep
The number of steps to run per timestep.
uint32_t mars_kiss64_simp(void)
static stdp_params params
Configuration parameters.
static bool threshold_type_is_above_threshold(state_t value, threshold_type_t *threshold_type)
Determines if the value given is above the threshold value.
#define PROB_SATURATION
Probability of firing when at saturation.
REAL v_thresh
soft threshold value [mV]
REAL du_th
sensitivity of soft threshold to membrane voltage [mV-1]
REAL time_step_ms
time step scaling factor
REAL tau_th
time constant for soft threshold [ms-1]
REAL v_thresh
soft threshold value [mV]
REAL neg_machine_time_step_ms_div_10
time step scaling factor
Stochastic threshold parameters.
Stochastic threshold configuration.