Neuron::Neuron(int number_layer, QVector<int>& number_neurons, int dimension_input, int dimension_output){ N_L = number_layer; D_I = dimension_input; D_O = dimension_output; N_N.resize(N_L); N_N = number_neurons; Energy.resize(N_L); for (int i =0; i< N_L; i++){ Energy[i].resize(N_N[i]); } W.resize(N_L); for (int i = 0 ; i < N_L; i++){ W[i].resize(N_N[i]); } for(int i = 0; i<N_L; i++){ for (int j; j < D_I; j++){ if(i == 0){ W[i][j].resize(D_I + 1); } else{ W[i][j].resize(N_N[i-1] +1); } } }}
C++ (Qt)for (int j; j < D_I; j++)