A UGen that reports a percentile of a sliding window across every cell of a window'ed input (such as an image).
The UGen starts outputting values immediately, even if the medianLen
is not yet reached. This is because medianLen
can be modulated (per input window).
If one wants to discard the initial values, use a drop
, for example
for medianLen/2 * winSize
frames.
Note that for an even median length and no interpolation, the reported median
may be either the value at index medianLen/2
or medianLen/2 + 1
in the sorted window.
All arguments but in
are polled per input window. Changing the frac
value
may cause an internal table rebuild and can thus be expensive.
- Value parameters:
- frac
the percentile from zero to one. The default of 0.5 produces the median.
- in
the window'ed input to analyze
- interp
if zero (default), uses nearest-rank, otherwise uses linear interpolation. '''Note:''' currently not implemented, must be zero
- medianLen
the length of the sliding median window (the filter window applied to every cell of the input window)
- winSize
the size of the input windows
- Companion:
- object