#include "eyebot.h" #include #include "npara.h"/*neural net papameters*/ #include "weights.h"/*weights of the neural net*/ double sigmoid(double x){ return 1.0 / (1.0 + (double)exp(-x));} void feedforward(double N_in[NIN], double N_hid[NHID], double N_out[NOUT], double w_in[NIN][NHID], double w_out[NHID][NOUT]) { int i,j; /* calculate activation of hidden neurons*/ N_in[NIN-1] = 1.0; /* set bias input neuron*/ for (i=0; i