From 6fd23da97fa9700f59c61a966b4bf7d25fa46b34 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 03:15:03 +0100 Subject: initial commit --- Node.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Node.hpp (limited to 'Node.hpp') diff --git a/Node.hpp b/Node.hpp new file mode 100644 index 0000000..97d7f4c --- /dev/null +++ b/Node.hpp @@ -0,0 +1,21 @@ +#ifndef __NODE_HPP__ +#define __NODE_HPP__ + +#include "NNUtils.hpp" + +class Node +{ +public: + virtual void setChromosome(const Chromosome &chromosome) = 0; + virtual Chromosome getChromosome() const = 0; + virtual unsigned getChromosomeSize() const = 0; + + virtual float io(const std::vector &inputs) = 0; + + unsigned getInputCount() const { return m_inputCount; } + +protected: + unsigned m_inputCount = 0; +}; + +#endif // __NODE_HPP__ -- cgit v1.2.1