sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
weight_two_term.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 The University of Manchester
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
19#ifndef _WEIGHT_TWO_TERM_H_
20#define _WEIGHT_TWO_TERM_H_
21
22#include "weight.h"
23
30 weight_state_t state, int32_t depression_1, int32_t depression_2);
31
38 weight_state_t state, int32_t potentiation_1, int32_t potentiation_2);
39
40#endif // _WEIGHT_TWO_TERM_H_
interface for different weight implementations for the weight half of a STDP rule.
The current state data for the rule.
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.
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.