ess.nmx.scaling.estimate_scale_factor_per_hkl_asu_from_reference#
- ess.nmx.scaling.estimate_scale_factor_per_hkl_asu_from_reference(reference_intensities)[source]#
Calculate the estimated scale factor per
hkl_asu
.The estimated scale factor is calculatd as the average of the inverse of the non-empty reference intensities.
It is part of the calculation of estimated scaled intensities for fitting the scaling model.
\[EstimatedScaleFactor_{(hkl)} = \dfrac{ \sum_{i=1}^{N_{(hkl)}} \dfrac{1}{I_{i}} }{ N_{(hkl)} } = average( \dfrac{1}{I_{(hkl)}} )\]Estimated scale factor is calculated per
hkl_asu
. This is part of the calculation of roughly-scaled-intensities for fitting the scaling model. The whole procedure is described inaverage_roughly_scaled_intensities()
.- Parameters:
reference_intensities (
scaling.ReferenceIntensities
(scipp.DataArray
)) – The reference intensities selected by wavelength.- Returns:
scaling.EstimatedScaleFactor
(scipp.DataArray
) – The estimated scale factor perhkl_asu
. The result should have a dimension ofhkl_asu
.It does not have a dimension of
wavelength
since it is calculated from the reference intensities, which is selected by onewavelength
.