1 2 3 4 5 6 7 8 9 10 11 12 13
#pragma once #include "brain/neural_node.h" class Sensor: public NeuralNode { private: double _activation; public: void setActivation(double activation) { _activation = activation; } virtual double activation() { return _activation; } };