19#ifndef _ELIMINATION_RANDOM_BY_WEIGHT_IMPL_H_
20#define _ELIMINATION_RANDOM_BY_WEIGHT_IMPL_H_
43 const elimination_params_t *
params,
48 if (current_state->weight <
params->threshold &&
49 random_number >
params->prob_elim_depression) {
54 if (current_state->weight >=
params->threshold &&
55 random_number >
params->prob_elim_potentiation) {
API for synapse elimination.
uint32_t prob_elim_depression
Probability of elimination of depressed synapse.
uint32_t prob_elim_potentiation
Probability of elimination of potentiated synapse.
static bool synaptogenesis_elimination_rule(current_state_t *restrict current_state, const elimination_params_t *params, uint32_t time, synaptic_row_t restrict row)
Elimination rule for synaptogenesis.
Configuration of synapse elimination rule.
struct synaptic_row * synaptic_row_t
The type of a synaptic row.
uint32_t mars_kiss64_seed(mars_kiss64_seed_t seed)
static bool sp_structs_remove_synapse(current_state_t *restrict current_state, synaptic_row_t restrict row)
Removes a synapse from the relevant structures.
struct representing the current state of rewiring
static stdp_params params
Configuration parameters.