+/GENN

genetically evolving neural networks

git clone https://git.julia.blue/+/GENN

Joseph RyanRestructure file system add graphics libcc48e92

imdone-todo-updates
456 B25 linesraw
1#ifndef GENN_XOR_H
2#define GENN_XOR_H
3
4#include "../include/simulation.h"
5
6class Xor : public Simulation {
7private:
8    double testData[4][3] = {{1.0, 0.0, 0.0},
9                             {1.0, 1.0, 0.0},
10                             {1.0, 0.0, 1.0},
11                             {1.0, 1.0, 1.0}
12    };
13
14    double answers[4] = {0.0, 1.0, 1.0, 0.0};
15
16public:
17    Xor();
18
19    void evaluate(Genome &g);
20
21    void view(Network n);
22};
23
24
25#endif //GENN_XOR_H