On Wed, Mar 13, 2024 at 02:51:38PM -0700, Linus Torvalds wrote: > On Wed, 13 Mar 2024 at 14:34, Kent Overstreet <kent.overstreet@xxxxxxxxx> wrote: > > > > I liked your MAD suggestion, but the catch was that we need an > > exponentially weighted version, > > The code for the weighted version literally doesn't change. Well, no, and there's another problem I can't believe I missed until now. MAD is defined as median of the absolute deviations, not mean, and you can't compute a median incrementally. So MAD doesn't work here at all.