summaryrefslogtreecommitdiff
path: root/include/brain/neuron.h
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-08-29 20:22:40 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-08-29 20:22:40 +0200
commitf35c5fca6a9faaa1caf3c1992844adf9033744e8 (patch)
tree766049f6ca2841a9c95a64f80cc316dada0f43fb /include/brain/neuron.h
parent5afd2af2d2c13c9062f131bd728c018d3ac3adb9 (diff)
Improved efficiency of network
Diffstat (limited to 'include/brain/neuron.h')
-rw-r--r--include/brain/neuron.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/brain/neuron.h b/include/brain/neuron.h
index 2746372..204b303 100644
--- a/include/brain/neuron.h
+++ b/include/brain/neuron.h
@@ -9,10 +9,10 @@
class Neuron : public NeuralNode
{
public:
- void addInput(std::unique_ptr<NeuralLink>&& link);
- void calculateActivation();
+ void addInput(NeuralLink&& link);
+ bool calculateActivation();
private:
- std::vector<std::unique_ptr<NeuralLink>> _inputLinks;
+ std::vector<NeuralLink> _inputLinks;
double sigmoid(double input) const;
};