summaryrefslogtreecommitdiff
path: root/Layer/Layer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Layer/Layer.h')
-rw-r--r--Layer/Layer.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Layer/Layer.h b/Layer/Layer.h
new file mode 100644
index 0000000..501ed86
--- /dev/null
+++ b/Layer/Layer.h
@@ -0,0 +1,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