Batch version of the back-propagation algorithm.
% Given a set of corresponding input-output pairs and an initial network
% [W1,W2,critvec,iter]=bat...
This function calculates Akaike s final prediction error
% estimate of the average generalization error for network
% models generated by NNARX, NNO...