satlas.stats.fitting.assign_hessian_estimate¶
-
satlas.stats.fitting.
assign_hessian_estimate
(func, f, params, *args, **kwargs)[source]¶ Calculates the Hessian of the model at the given parameters, and associates uncertainty estimates based on the inverted Hessian matrix. Note that, for estimation for chisquare methods, the inverted matrix is multiplied by 2.
Parameters: - func (function) – Function used as cost function. Use
chisquare_model
for chisquare estimates, andlikelihood_lnprob
for likelihood estimates. - f (
BaseModel
) – Model for which the estimates need to be made. - params (Parameters) – LMFIT parameters for which the Hessian estimate needs to be made.
- args (args for func) – Arguments for the defined cost function func.
- likelihood (boolean) – Set to True if a likelihood approach is used.
- progress (progressbar) – TQDM progressbar instance to update.
Returns: Return type: None
- func (function) – Function used as cost function. Use