diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2022-04-19 21:28:44 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2022-04-19 21:28:44 +0200 |
commit | dc01a3e25e6c4ef056467e36f876ebd68f3ade22 (patch) | |
tree | 2147462c4cbe9a7b0de59d13bb20c842e33f75a3 /2015-spacebot/include/brain/neural_link.h | |
parent | be89211af895548425be999f660a1195efe9fc8a (diff) | |
parent | 8eebf1079fbed2848ee47cf990f5def5926a0c1f (diff) |
Merge branch 'spacebot-main'
Diffstat (limited to '2015-spacebot/include/brain/neural_link.h')
-rw-r--r-- | 2015-spacebot/include/brain/neural_link.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2015-spacebot/include/brain/neural_link.h b/2015-spacebot/include/brain/neural_link.h new file mode 100644 index 0000000..14f58b9 --- /dev/null +++ b/2015-spacebot/include/brain/neural_link.h @@ -0,0 +1,17 @@ +#pragma once + +#include "neural_node.h" + +class NeuralLink +{ +public: + NeuralLink(NeuralNode* input, double weight); + double weightedActivation() const; + + double weight() const { return _weight; } + std::string inputIdentifier() const { return _input->identifier(); } + +private: + NeuralNode* _input; + double _weight; +}; |