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 /include/brain/neural_network.h | |
parent | be9e20b29ce0ed81091ab3589f4910232b457cec (diff) |
Implemented structure of network
Diffstat (limited to 'include/brain/neural_network.h')
-rw-r--r-- | include/brain/neural_network.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/brain/neural_network.h b/include/brain/neural_network.h index 37eb3a1..bb53079 100644 --- a/include/brain/neural_network.h +++ b/include/brain/neural_network.h @@ -15,8 +15,8 @@ public: void setInput(int inputIndex, double activation); int findMaxOutputIndex(); - int numberOfSensors() { return _sensors.size(); } - int numberOfOutputs() { return _outputs.size(); } + int numberOfSensors() const { return _sensors.size(); } + int numberOfOutputs() const { return _outputs.size(); } private: std::vector<std::shared_ptr<NeuralNode>> _nodes; |