Frontend for computation of statistics for a residual-based minimization.
settings is a structure whose fields can be set by
optimset. With settings the computation of certain statistics is requested by setting the fieldsret_<name_of_statistic>totrue. The respective statistics will be returned in a structure as fields with name<name_of_statistic>. Depending on the requested statistic and on the additional information provided in settings, f and p may be empty. Otherwise, f is the model function of an optimization (the interface of f is described e.g. innonlin_residmin, please see there), and p is a real column vector with parameters resulting from the same optimization.Currently, the following statistics (or general information) can be requested:
dfdp: Jacobian of model function with respect to parameters.
covd: Covariance matrix of data (typically guessed by applying a factor to the covariance matrix of the residuals).
covp: Covariance matrix of final parameters.
corp: Correlation matrix of final parameters.See also: curvefit_stat.
The fields of the settings structure can be set with optimset.
For settings common to all frontends see Common frontend options.
objf_typeresidualscovdweightsdfdpnonlin_residmin (see
nonlin_residmin), but alternatively may
already contain the computed Jacobian of the model function at the final
parameters in matrix- or structure-form.
complex_step_derivative_fdfdp) must be
specified.
Please see Parameter structures.
Please see Residual optimization and choose backend from menu under `Statistics backends'.