summaryrefslogtreecommitdiff
path: root/include/brain/neural_network.h
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-07-31 08:47:50 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-07-31 08:47:50 +0200
commitbe9e20b29ce0ed81091ab3589f4910232b457cec (patch)
tree5c1449cdfce8bc010e09fb3db861133dc9404498 /include/brain/neural_network.h
parent650a2f680ec403d8b2a044674e296b9cab7af793 (diff)
Constructed nodes
Diffstat (limited to 'include/brain/neural_network.h')
-rw-r--r--include/brain/neural_network.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/brain/neural_network.h b/include/brain/neural_network.h
index 99e5f60..37eb3a1 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();
- int numberOfOutputs();
+ int numberOfSensors() { return _sensors.size(); }
+ int numberOfOutputs() { return _outputs.size(); }
private:
std::vector<std::shared_ptr<NeuralNode>> _nodes;