22 elimination_params_t *elim_params =
23 spin1_malloc(
sizeof(elimination_params_t));
24 if (elim_params ==
NULL) {
25 log_error(
"Out of memory when allocating parameters");
28 spin1_memcpy(elim_params, *data,
sizeof(elimination_params_t));
29 log_debug(
"Elimination random by weight prob_dep=%u prob_pot=%u thresh=%u",
30 elim_params->prob_elim_depression,
31 elim_params->prob_elim_potentiation,
32 elim_params->threshold);
33 *data +=
sizeof(elimination_params_t);
void log_error(const char *message,...)
void log_debug(const char *message,...)
elimination_params_t * synaptogenesis_elimination_init(uint8_t **data)
Read and return an elimination parameter data structure from the data stream.
Synapse elimination by weighted random selection.
void rt_error(uint code,...)
void spin1_memcpy(void *dst, void const *src, uint len)