mstk.analyzer.structure.calc_weighted_average

mstk.analyzer.structure.calc_weighted_average(array, weight)

Calculate the weighted average of 2-dimensional data

Parameters:
  • array (np.array) –

  • weight (np.array) – If weight for all elements equal to zero. Will ignore weight

Returns:

average

Return type:

np.array