bartorch.median_filter#
- bartorch.median_filter(input, axis, length, *, geometric=False)#
Median over each window of
lengthconsecutive elements alongaxis(-m,-l).Only whole windows are taken: the axis shrinks from
nton - length + 1andout[i]is the median ofinput[i:i + length].- Parameters:
geometric (bool) – Take the geometric median of the complex values in the plane (
-G), by ten Weiszfeld iterations from zero. Otherwise the element of median magnitude, or the mean of the two for an even length.