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 calculated 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)=i=1N(hkl)1IiN(hkl)=average(1I(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 in average_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 per hkl_asu. The result should have a dimension of hkl_asu.

It does not have a dimension of wavelength since it is calculated from the reference intensities, which is selected by one wavelength.