Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curve fitting convenience interface #28

Open
ivan-pi opened this issue Feb 4, 2022 · 2 comments
Open

Curve fitting convenience interface #28

ivan-pi opened this issue Feb 4, 2022 · 2 comments

Comments

@ivan-pi
Copy link
Member

ivan-pi commented Feb 4, 2022

A typical usage case for non-linear least squares is curve fitting.

In the archived version of @certik, there is already a demo example of a find_fit subprogram: https://github.com/certik/minpack/blob/b46766bd42ec6f08114caf5f6d811d815f78a809/examples/example_primes.f90#L23

Both SciPy and MATLAB provide convenience functions for this purpose:

These are effectively just wrappers of the general non-linear least squares routines, which take the pair (xdata, ydata) alongside the function to be fitted.

@certik
Copy link
Member

certik commented Feb 4, 2022

That's right. We need to add it.

@jacobwilliams
Copy link
Member

I would say add the example, but don't try to provide a curve-fitting api in this library, since a general curve-fitting library should be a separate project. :) There are lot of different curve-fitting methods, and even quite a few fortran projects out there (I maintain several myself).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants