blob: 97d7f4c50691f861b823805e75b4b356d22c43eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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<float> &inputs) = 0;
unsigned getInputCount() const { return m_inputCount; }
protected:
unsigned m_inputCount = 0;
};
#endif // __NODE_HPP__
|