7

I am wondering if there is a class for fitting data to a sine curve. I found an algorithm for it here but it would take some time to first understand and then code... Before I go down that road I am wondering if the forum knows of a class that is already created for such mathematical modeling.

Richard
  • 15,152
  • 31
  • 85
  • 111

1 Answers1

3

C# does not have a long tradition of scientific computing libraries...

My take would be to get one of the numerous numerical computation routine packages (like on of them, or the Numerical Recipes) in C/C++, and wrap it under C#.

See also this Math.SE post.

On the commercial side, NMath library has a MultiVariableFunctionFitter class that is would be perfect for you.

Finally, see this Wikipedia list.

Community
  • 1
  • 1
CharlesB
  • 86,532
  • 28
  • 194
  • 218