sPyNNaker neural_modelling 7.2.2
Loading...
Searching...
No Matches
Functions
weight_two_term.h File Reference

API for dual-term weight dependence rules. More...

#include "weight.h"

Go to the source code of this file.

Functions

static weight_state_t weight_two_term_apply_depression (weight_state_t state, int32_t depression_1, int32_t depression_2)
 Apply the depression rule to the weight state.
 
static weight_state_t weight_two_term_apply_potentiation (weight_state_t state, int32_t potentiation_1, int32_t potentiation_2)
 Apply the potentiation rule to the weight state.
 

Detailed Description

API for dual-term weight dependence rules.

Definition in file weight_two_term.h.

Function Documentation

◆ weight_two_term_apply_depression()

static weight_state_t weight_two_term_apply_depression ( weight_state_t  state,
int32_t  depression_1,
int32_t  depression_2 
)
static

Apply the depression rule to the weight state.

Parameters
[in]stateThe weight state to update
[in]depression_1The amount of depression to apply to term 1
[in]depression_2The amount of depression to apply to term 2
Returns
the updated weight state

◆ weight_two_term_apply_potentiation()

static weight_state_t weight_two_term_apply_potentiation ( weight_state_t  state,
int32_t  potentiation_1,
int32_t  potentiation_2 
)
static

Apply the potentiation rule to the weight state.

Parameters
[in]stateThe weight state to update
[in]potentiation_1The amount of potentiation to apply to term 1
[in]potentiation_2The amount of potentiation to apply to term 2
Returns
the updated weight state