LoveBrains  1.0.0
gann.h
1 /*
2 ** gann.h for GANNEngine in /home/robin_f/Programming/Git/CPP/GANNEngine
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Sun Jul 19 22:00:11 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 23:52:56 2015 Guillaume ROBIN
9 */
10 
11 #ifndef GANN_H_
12 # define GANN_H_
13 
14 # include <vector>
15 
16 # include "GA/i_dna.h"
17 # include "ANN/neural_net.h"
18 
23 namespace GANN
24 {
28  class GANN : public GA::IDNA
29  {
30  public:
35  GANN(std::vector<unsigned int> const& infos);
39  GANN(ANN const& ann);
43  ~GANN(void);
44 
45  /*
46  ** Getters.
47  */
48 
53  double getFitness(void) const;
58  ANN const& getGenes(void) const;
59 
60  /*
61  ** Setters.
62  */
63 
68  void setFitness(double fitness);
73  void setGenes(ANN const& ann);
74 
75  /*
76  ** Methods.
77  */
81  void Print(void);
82 
83  private:
84  ANN _brain;
85  double _fitness;
86  };
87 }
88 
89 #endif /* !GANN_H_ */
Define the interface that will be used to create an supported individual for the GAEngine.
Definition: i_dna.h:22
Define what is a neural network.
Definition: neural_net.h:24
Contains all the objects that provide the management for the genetic algorithm with neural networks...
Definition: ann_exception.h:16