#ifndef GENN_NETWORK_H #define GENN_NETWORK_H #include "Genome.h" #include struct Neuron { Neuron(int a) { id = a; } int id = -1; double value = 0, sum = 0; }; struct Connection { Connection(double a) { weight = a; } Neuron *in; Neuron *out; double weight; }; class Network { private: double sigmoid(double); std::vector inputs; std::vector hiddenNodes; std::vector outputs; std::vector structure; public: Network(Genome &); ~Network(); void propagate(double *, double *); void reset(); }; #endif //GENN_NETWORK_H