curvefit_stat (optim_doc)

### 2.5 Statistics for curve fitting ¶

As `nonlin_curvefit` can be used instead of `nonlin_residmin` for curve fitting ( see Function nonlin_curvefit() for curve fitting, see Frontend nonlin_residmin for non-linear residual minimization), `curvefit_stat` can be used instead of `residmin_stat` ( see Statistics for residual minimization) for statistics on the results of curve fitting.

Function File: `info =` curvefit_stat `(f, p, x, y, settings)` ¶

  Frontend for computation of statistics for fitting of values, computed by a model function, to observed values.

  Please refer to the description of `residmin_stat`. The only differences to `residmin_stat` are the additional arguments x (independent values) and y (observations), that the model function f, if provided, has a second obligatory argument which will be set to x and is supposed to return guesses for the observations (with the same dimensions), and that the possibly user-supplied function for the jacobian of the model function has also a second obligatory argument which will be set to x.

  See also: residmin_stat.