user1425322
user1425322

Reputation: 159

Gaussian Curve-fitting algorithm

Folks,i have been trying to obtain a Gaussian fit for some data sets which somehow look like a distorted normal distribution.I have been using software to do that. I wonder if i can apply an iterative algorithm to convert these data sets to a Gaussian fitted curve,the standard deviation and mean of the original curve being the inputs.? Any ideas?

Upvotes: 4

Views: 12970

Answers (1)

rubenvb
rubenvb

Reputation: 76805

  1. Calculate the mean of the data: mu = 1/N Sum(xi)
  2. Calculate the dispersion of the data: sigma = sqrt(1/(N-1) Sum(xi-mu))
  3. Fill in the parameters: gauss = 1/(sigma*sqrt(2pi)))*exp(-1/2*((x-mu)/sigma)^2)

I don't see any need for fitting the beast with the easy math involved.

Upvotes: 5

Related Questions