ess.sans.beam_center_finder.center_of_mass#

ess.sans.beam_center_finder.center_of_mass(data)#

Find the center-of-mass of the data counts. The center-of-mass is simply the weighted mean of the positions.

Parameters

data (DataArray) – The data to find the center-of-mass of.

Returns

Variable – The position of the center-of-mass, as a vector.