calamari.fitting.windows.FitWindowsResult#
- class calamari.fitting.windows.FitWindowsResult(table, results, params)#
Bases:
objectThe outcome of
fit_windows(): one fit per window, tabulated.- table#
One row per window, in the order the windows were given. Columns are
x_min,x_max,n_points,success,dof,reduced_chi_squaredandyerr_assumed, followed by<p>and<p>_errfor every model parameterp:x_min,x_maxThe window’s inclusive bounds, as given.
n_pointsHow many points fell inside it.
successWhether the fit converged to a valid minimum. A window with no more points than free parameters is a failure:
fit()refuses it rather than interpolating it.dofn_pointsminus the number of free parameters, from the fit. Reported as is, so an underdetermined window shows zero or a negative number, which is the reason it failed.reduced_chi_squaredFrom the fit; NaN on a failure row.
yerr_assumedTruewhen noyerrwas supplied (seeFitResult).<p>,<p>_errThe best-fit value and its HESSE uncertainty. A fixed parameter reports its fixed value and an error of 0. A failure row is NaN throughout: where MIGRAD stopped is not an estimate, and a number in the table would invite plotting it. Drill into
resultsfor that.<q>,<q>_errOne pair per entry of
derived, after the parameter columns and in the mapping’s order: the quantity at the best fit and its first-order propagated uncertainty (seederive(), which also says when that approximation fails). NaN on a failure row, like the parameters;<q>_erralone is NaN when the window has no covariance to propagate.
- Type:
- results#
The per-window fit results, aligned with the rows of
table(results[i]is rowi), for drill-down: covariances, MINOS bands,curve(). A failed window’s entry isfit()’s ownsuccess=Falseresult.- Type:
- params#
The recipe:
'model'(the model name),'windows'(the bounds as float pairs),'fit_kwargs'(the forwardedfit()keywords, copied),'derived'(each derived quantity’s name mapped to a qualified function/type orpartial(function)description; empty withoutderived) and'calamari_version'. Callable labels do not serialise configured state; retain callable source and configuration with the recipe.- Type: