6.7.9. reject_outliers

reject_outliers(x, n=1, med=<function median>, std=<function std>)[source]

Calculates the median and standard deviation of the sample rejecting the outliers.

Parameters:
  • x (Iterable) – Input data.
  • n (int) – Number of standard deviations.
  • med (function, optional) – Median function.
  • std (function, optional) – Standard deviation function.
Returns:

Median and standard deviation.

Return type:

(float, float)