Implements radial basis function for neural network