fitting.weighted_mean

fitting.weighted_mean(x, s)

Calculate the weighted average over a given data set and its uncertainties.

Parameters:
  • x (array) – Data array.
  • s (array) – Standard deviation / uncertainty for each value in x.
Returns:

Weighted average of <x> and <s>.