I am trying to build some visualizations using matplotlib, and in one of my functions I check if the waves are logarithmic. This is my current working version:
import numpy as np def is_logarithmic(waves): def expfunc(x, a, b, c): return a*np.exp(b*x) + c wcopy = list(waves) wcopy.sort()
I am trying to find an alternative to scipy curve_fit() because I do not want to install such a large library to use this single function. Is there anything else I can use, or a combination of other functions from using is ideally just numpy and matplotlib to get a similar result?
source share