diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2015-08-01 14:35:58 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2015-08-01 14:35:58 +0200 |
commit | 7e8dce7224214cbb82e9191917de9f234fe38cb7 (patch) | |
tree | 2ac58697c2004ef72b3cb52eb8cb53000ebdf86d /src/brain/neural_link.cpp | |
parent | be9e20b29ce0ed81091ab3589f4910232b457cec (diff) |
Implemented structure of network
Diffstat (limited to 'src/brain/neural_link.cpp')
-rw-r--r-- | src/brain/neural_link.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/brain/neural_link.cpp b/src/brain/neural_link.cpp new file mode 100644 index 0000000..d217236 --- /dev/null +++ b/src/brain/neural_link.cpp @@ -0,0 +1,11 @@ +#include "brain/neural_link.h" + +NeuralLink::NeuralLink(double weight) + :_weight(weight) +{ +} + +double NeuralLink::weightedActivation() const +{ + return _input->activation()*_weight; +} |