Standard Library function that fits aGaussian curve through a data set.
y
These estimated parameters
The peak or minimum of the Gaussian function returned will be located at the index of the largest or smallest value, respectively, in the y vector.