MHCXGraph.utils.analysis.wtrimmed_mean

MHCXGraph.utils.analysis.wtrimmed_mean(x, w, trim=0.1)[source]

Weighted trimmed mean removing tails.

Parameters:
  • x (array_like) – Data values.

  • w (array_like) – Weights.

  • trim (float, optional) – Fraction to trim at each tail, by default 0.10.

Returns:

Weighted trimmed mean.

Return type:

float