calamari.fitting.windows#

Fit the same model over several caller-specified ranges.

fit_windows() records how fitted parameters and derived quantities change with the fitting range. Each window uses fit(): supplied standard errors give absolute uncertainties; otherwise the fit estimates constant scatter from the residuals. Numerical failures appear as unsuccessful rows. Invalid configuration and unexpected model errors propagate.

Choose ranges that are physically appropriate for the data. Overlapping windows are correlated, and stable results do not establish that the model is adequate. No fitting ranges, stability threshold or preferred window are chosen automatically.

derived= evaluates caller-supplied scalar functions of each fit’s parameters and propagates the full covariance with derive(). Convert the input quantities to the required normalisation before fitting; the fit does not infer a mole basis.

Functions

fit_windows

Fit model separately over each x-window and tabulate the results.

Classes

FitWindowsResult

The outcome of fit_windows(): one fit per window, tabulated.