Find a least squares Weibull curve fit for a set of points in C#

Not long ago, a client wanted to fit sets of data points to Weibull curves of the form:

F(x) = a - b * e^(-c*x^d)

The earlier example Find an exponential least squares fit for a set of points in C# explains how to find a least squares fit for exponential data. This example uses a similar technique with the following differences:

  • This example uses a different function F, error function E, and partial derivatives
  • This example's functions have 4 parameters a, b, c, and d instead of just 3
  • The ranges for test values of a, b, c, and d are different so they fit the data better

See the earlier example for an explanation of how this technique works. For more information on classical Weibull functions, see:

   

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.