ess.nmx.scaling.fit_wavelength_scale_factor_polynomial#
- ess.nmx.scaling.fit_wavelength_scale_factor_polynomial(estimated_intensities, *, n_degree)[source]#
Fit the wavelength scale factor polynomial.
It uses
polyval_wavelength()
as the fitting function andscipp.optimize.curve_fit()
for the fitting process. The initial guess for the polynomial coefficients is set to 1 for all degrees. The unit of the coefficients is adjusted to make the fitting result dimensionless.- Parameters:
estimated_intensities (
scaling.FilteredEstimatedScaledIntensities
(scipp.DataArray
)) – The estimated scaled intensities to be fitted.n_degree (
scaling.WavelengthFittingPolynomialDegree
(int
)) – The degree of the polynomial to be fitted.
- Returns:
FittingResult
– The fitting result.