python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Lmfit error while fitting with a power law : invalid value encountered in multiply return
Lmfit fails to do a fit with a power law-type function and I really can't grasp why.
The function is the following
def HB(x, ys, K, n):
return ys + K*np.power(x, n)
The data I try to fit is this ...

Manon
Votes: 0
Answers: 1
Fitting two voigt curves, one after the other using lmfit
I have the following emission spectra of Neon collected on a Raman (background subtracted data):
x=np.array([[1114.120887, 1114.682293, 1115.243641, 1115.80493 , 1116.366161, 1116.927334, 1117.488...
GeoPenny
Votes: 0
Answers: 1
LMFIT not properly fitting where scipy does with same starting parameter values
I have a complicated curve fitting function:
def corr_function(tau: np.ndarray, BG: float, avg_C: float, vz: float):
wxc = 8.3
wy = 2.5
wz = 3.35
D = 4.4e1
return 1/((math.pi)**(3...
joshp
Votes: 0
Answers: 0
How to define lmfit model for complex functions?
I am working on cole cole model which basically exhibits how the permittivity varies with respect to frequency and is given by;
Where, ε_∞ is the higher permittivity,
ε_s is the static permittivity ε...
kaushal
Votes: 0
Answers: 0