A novel nonlinear optimization method for fitting a noisy Gaussian activation function