API for threshold types.
More...
Go to the source code of this file.
API for threshold types.
Definition in file threshold_type.h.
◆ threshold_type_initialise()
initialise the state from the parameters
- Parameters
-
[out] | state | Pointer to the state to initialise |
[in] | params | Pointer to the parameters passed in from host |
[in] | n_steps_per_timestep | The number of steps to run each update |
◆ threshold_type_save_state()
save parameters and state back to SDRAM for reading by host and recovery on restart
- Parameters
-
[in] | state | The current state |
[out] | params | Pointer to structure into which parameter can be written |
◆ threshold_type_is_above_threshold()
Determines if the value given is above the threshold value.
- Parameters
-
[in] | value | The value to determine if it is above the threshold |
[in] | threshold_type | The parameters to use to determine the result |
- Returns
- True if the neuron should fire