#include "neurone.h" #include "couche.h" #include "inputCouche.h" #include "synapse.h" #include "synapseMatrix.h" #include "reseau.h" #include #include "inputtest.h" //using namespace std; void testafroche() { try { Neurone NewNeu(); Couche Output(4); Couche Input(3,&Output); Synapse s(2.324232); SynapseMatrix m(3,2); InputCouche InputC(3); cout << InputC ; cout << "get syn:" << Input.getSynapse(2,2).getWeight() << endl; m(1,1) = 2.5; cout<< "Test: " << m(1,1).getWeight() << endl; m.randomize(); cout<< m ; //Input[4]; Input[2]=2.132; Input.getSynapse(1,2).getWeight(); cout << "Synapse weight: " << s << endl; } catch(std::string str){ cout << "Exception: " < in; std::vector r; for(int i=0;i V; for(int i=0;i