#include #include #include int main() { NeuralNetwork::Recurrent::Network a(2,1,1); a.getNeurons()[4]->setWeight(*a.getNeurons()[1],0.05); a.getNeurons()[4]->setWeight(*a.getNeurons()[2],0.05); a.getNeurons()[4]->setWeight(*a.getNeurons()[3],0.7); a.getNeurons()[3]->setWeight(*a.getNeurons()[4],0.1); std::vector solutions({0.5,0.5732923,0.6077882,0.6103067,0.6113217,0.6113918,0.61142,0.6114219,0.6114227,0.6114227}); for(size_t i=0;i solutions[i]*0.999 && res < solutions[i]*1.001); } }