Constructor forcfit
object
constructs thecfun
= cfit(ffun
,coeff1,...,coeffn
)cfit
objectcfun
using the model type specified by thefittype
objectffun
and the coefficient valuescoeff1
,coeff2
, etc.
Note
cfit
is called by thefit
function when fittingfittype
objects to data. To create acfit
object that is the result of a regression, usefit
.
You should only callcfit
directly if you want to assign values to coefficients and problem parameters of afittype
objectwithoutperforming a fit.