swharden / SWHarden.com

The personal website of Scott W Harden
https://swharden.com
MIT License
4 stars 0 forks source link

Feedback on `Exponential Fit with Python` #29

Closed Candice3PO closed 3 months ago

Candice3PO commented 3 months ago

Regarding https://swharden.com/blog/2020-09-24-python-exponential-fit/

Thanks! And do you have also an example of biexponential function fitting?

Thank you!

swharden commented 3 months ago

I don't, but instead of

def monoExp(x, m, t, b):
    return m * np.exp(-t * x) + b

you can create your own function, any function, including biexponential function, then fit it the same way 👍

https://en.wikipedia.org/wiki/Double_exponential_function