From b4c345e6a5fa929ba20eac19183b9c777055f52d Mon Sep 17 00:00:00 2001 From: Gaspard Coulet Date: Wed, 28 Apr 2021 23:12:36 +0200 Subject: Initial commit --- Layer/Layer.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Layer/Layer.h (limited to 'Layer/Layer.h') 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 + +class Layer { +public: + enum TypeLayer { + INPUT, + OUTPUT, + HIDDEN + }; +protected: + double k; + int nbNeurone; + std::vector membres; + std::vector input; + std::vector output; + TypeLayer type; +public: + Layer(); + Layer(TypeLayer,int,int,FonctionActivation::EnumFonctionActivation); + Neurone * getNeurone(int index); + virtual std::vector fire(std::vector, double); + int getNbNeurones(); + std::vector getInput(); + std::vector getOutput(); + void printWeight(); +}; + #endif -- cgit v1.2.3