60 obj->params = *params_sdram;
61 *
region = ¶ms_sdram[1];
63 log_debug(
"normal clipped to boundary mu = %k, sigma = %k, low = %k, high = %k",
64 obj->params.mu, obj->params.sigma, obj->params.low, obj->params.high);
87 value = obj->params.mu + (value * obj->params.sigma);
88 if (value < obj->
params.low) {
89 return obj->params.low;
91 if (value > obj->params.high) {
92 return obj->params.high;
void log_debug(const char *message,...)
General types associated with generators.
rng_t * core_rng
An RNG that is local to the current core.
static void * param_generator_normal_clipped_boundary_initialize(void **region)
How to initialise the clamped normal RNG parameter generator.
static void param_generator_normal_clipped_boundary_free(void *generator)
How to free any data for the clamped normal RNG parameter generator.
static accum param_generator_normal_clipped_boundary_generate(void *generator)
How to generate values with the clamped normal RNG parameter generator.
The parameters that can be copied in from SDRAM.
The data structure to be passed around for this generator. This includes the parameters and an RNG.
accum rng_normal(rng_t *rng)
Generate an normally-distributed random number.
Random number generator interface.
void sark_free(void *ptr)
region
spike source array region IDs in human readable form
static stdp_params params
Configuration parameters.