sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
Data Structures | Functions
threshold_type_static.h File Reference

Threshold that fires at a fixed level. More...

#include "threshold_type.h"

Go to the source code of this file.

Data Structures

struct  threshold_type_params_t
 Stochastic threshold parameters. More...
 
struct  threshold_type_t
 Stochastic threshold configuration. More...
 

Functions

static void threshold_type_initialise (threshold_type_t *state, threshold_type_params_t *params, uint32_t n_steps_per_timestep)
 
static void threshold_type_save_state (threshold_type_t *state, threshold_type_params_t *params)
 
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.
 

Detailed Description

Threshold that fires at a fixed level.

Definition in file threshold_type_static.h.


Data Structure Documentation

◆ threshold_type_params_t

struct threshold_type_params_t

Stochastic threshold parameters.

Definition at line 26 of file threshold_type_fixed_prob.h.

Data Fields
REAL threshold_value The value of the static threshold.
UREAL prob The probability of spiking when the threshold has been crossed.
mars_kiss64_seed_t random_seed The random seed.
REAL du_th sensitivity of soft threshold to membrane voltage [mV-1]
REAL tau_th time constant for soft threshold [ms-1]
REAL v_thresh soft threshold value [mV]
REAL time_step_ms time step scaling factor

◆ threshold_type_t

struct threshold_type_t

Stochastic threshold configuration.

Static threshold configuration.

Definition at line 36 of file threshold_type_fixed_prob.h.

Data Fields
REAL threshold_value The value of the static threshold.
uint32_t prob The probability of spiking when the threshold has been crossed.
mars_kiss64_seed_t random_seed The random seed.
REAL du_th_inv

sensitivity of soft threshold to membrane voltage [mV-1] (inverted in python code)

REAL tau_th_inv

time constant for soft threshold [ms-1] (inverted in python code)

REAL v_thresh soft threshold value [mV]
REAL neg_machine_time_step_ms_div_10 time step scaling factor

Function Documentation

◆ threshold_type_initialise()

static void threshold_type_initialise ( threshold_type_t state,
threshold_type_params_t params,
uint32_t  n_steps_per_timestep 
)
static

Definition at line 35 of file threshold_type_static.h.

◆ threshold_type_save_state()

static void threshold_type_save_state ( threshold_type_t state,
threshold_type_params_t params 
)
static

Definition at line 40 of file threshold_type_static.h.

◆ threshold_type_is_above_threshold()

static bool threshold_type_is_above_threshold ( state_t  value,
threshold_type_t threshold_type 
)
inlinestatic

Determines if the value given is above the threshold value.

Parameters
[in]valueThe value to determine if it is above the threshold
[in]threshold_typeThe parameters to use to determine the result
Returns
True if the neuron should fire

Definition at line 48 of file threshold_type_static.h.