webbpsf_ext.robust.medabsdev

webbpsf_ext.robust.medabsdev(data, axis=None, keepdims=False, nan=True)[source]

Median Absolute Deviation

A “robust” version of standard deviation. Runtime is the same as astropy.stats.funcs.mad_std.

Parameters
  • data (ndarray) – The input data.

  • axis (None or int or tuple of ints, optional) – Axis or axes along which the deviation is computed. The default is to compute the deviation of the flattened array.

    If this is a tuple of ints, a standard deviation is performed over multiple axes, instead of a single axis or all the axes as before. This is the equivalent of reshaping the input data and then taking the standard devation.

  • keepdims (bool, optional) – If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the original arr.

  • nan (bool, optional) – Ignore NaNs? Default is True.