diff options
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; +}; |