Trailing-window length.
Threshold in robust standard deviations (1.4826 * MAD).
"cleaned" replaces outliers with the median, "flag" emits 1.0 at outliers (else 0.0), "nan" replaces outliers with NaN.
Warmup handling before the window is full (strict, expanding, or zero).
https://screamer.readthedocs.io/en/latest/ for the Python reference and full details.
Robust Hampel despiker, replace samples far from the window median (in MAD units).