sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
Functions
threshold_type.h File Reference

API for threshold types. More...

#include <common/neuron-typedefs.h>

Go to the source code of this file.

Functions

static void threshold_type_initialise (threshold_type_t *state, threshold_type_params_t *params, uint32_t n_steps_per_timestep)
 initialise the state from the parameters
 
static void threshold_type_save_state (threshold_type_t *state, threshold_type_params_t *params)
 save parameters and state back to SDRAM for reading by host and recovery on restart
 
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

API for threshold types.

Definition in file threshold_type.h.

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

initialise the state from the parameters

Parameters
[out]statePointer to the state to initialise
[in]paramsPointer to the parameters passed in from host
[in]n_steps_per_timestepThe number of steps to run each update

◆ threshold_type_save_state()

static void threshold_type_save_state ( threshold_type_t state,
threshold_type_params_t params 
)
static

save parameters and state back to SDRAM for reading by host and recovery on restart

Parameters
[in]stateThe current state
[out]paramsPointer to structure into which parameter can be written

◆ threshold_type_is_above_threshold()

static bool threshold_type_is_above_threshold ( state_t  value,
threshold_type_t threshold_type 
)
static

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