An implementation of the back propagation algorithm for neural network in c++