sPyNNaker neural_modelling  7.4.2
Functions | Variables
stoc_exp_common.h File Reference

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
 

Detailed Description

Stochastic common code.

Definition in file stoc_exp_common.h.

Variable Documentation

◆ MIN_TAU

const uint32_t MIN_TAU = 0x10B55
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.