smpl.fit.fit
- smpl.fit.fit(datax, datay, function, **kwargs)[source]
Returns a fit of
functiontodataxanddatay.Parameters
- dataxarray_like
X data either as
unp.uarrayornp.arrayorlist- datayarray_like
Y data either as
unp.uarrayornp.arrayorlist- functionfunc
Fit function with parameters:
x,params- **kwargsoptional
see
fit_kwargs().