#include "eyebot.h" #include #include #include #include "mydef.h" #include "PathSearch.h" #include "npara.h" #include "weights.h" #define THRESH 250 #define MAXSTEPS 10000 PSDHandle psd[4]; int stop=0; /*required by the neural net*/ double sigmoid(double x) { return 1.0 / (1.0 + (double)exp(-x)); } /*neural net (multi layer perceptron with 1 hidden layer)*/ void feedforward(double N_in[NIN], double N_hid[NHID], double N_out[NOUT]) { int i,j; /* calculate activation of hidden neurons*/ N_in[NIN-1] = 1.0; /* set bias input neuron*/ for (i=0; i