I found several ways to do non-linear curve fitting, but all of them use modules that do the hard work, like a magic box.
I'm trying to get my hands dirt and do this curve fittings myself but I'm clueless where to start.
I made a simple script that was able to do linear fitting with a single variable. The way I did was using a while
until the average difference of the output and the real data was within a margin, I updated the variable each time by 0.00001 (or something like that) +- if the difference was increasing or decreasing.
I can't do that with a multivarible non-linear curve.
Where should I start? I'm looking for video/blog/paper that goes in details on how to achieve, preferably with a non-CS view. If in Python all the better.