summaryrefslogtreecommitdiff
path: root/Layer/Layer.h
blob: 501ed86321544d4a8df0fb01e32eaf2acf11f7a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _LAYER_H_
#define _LAYER_H_
#include"../Neurone/Neurone.h"
#include"../Neurone/NeuroneB.h"
#include "../Neurone/FonctionActivation.h"
#include<vector>

class Layer {
public:
  enum TypeLayer {
    INPUT,
    OUTPUT,
    HIDDEN
  };
protected:
  double k;
  int nbNeurone;
  std::vector<Neurone *> membres;
  std::vector<double> input;
  std::vector<double> output;
  TypeLayer type;
public:
  Layer();
  Layer(TypeLayer,int,int,FonctionActivation::EnumFonctionActivation);
  Neurone * getNeurone(int index);
  virtual std::vector<double> fire(std::vector<double>, double);
  int getNbNeurones();
  std::vector<double> getInput();
  std::vector<double> getOutput();
  void printWeight();
};
 #endif