sPyNNaker neural_modelling 7.2.2
|
Stochastic common code. More...
Go to the source code of this file.
Functions | |
static uint32_t | stoc_exp_ceil_accum (UREAL value) |
static uint32_t | get_probability (UREAL tau, REAL p) |
Calculates the probability as a uint32_t from 0 to 0xFFFFFFFF (which is 1) | |
Variables | |
static const uint32_t | MIN_TAU = 0x10B55 |
Stochastic common code.
Definition in file stoc_exp_common.h.
|
inlinestatic |
Definition at line 20 of file stoc_exp_common.h.
Calculates the probability as a uint32_t from 0 to 0xFFFFFFFF (which is 1)
Definition at line 37 of file stoc_exp_common.h.
|
static |
The minimum value of tau that has the potential to reduce below 1 from mulitplication by negative fractional power of 2 of 16 or less. In other words, if tau is bigger than this, no multiplication by fractional negative powers of 2 will ever bring it below 1, so a probability of >=1 is guaranteed.
Definition at line 34 of file stoc_exp_common.h.