6 ms·
You could use median instead of filtering out outliers explicitly so your averages don't get skewed.
by pnachbaur 12y ago
You could use median instead of filtering out outliers explicitly so your averages don't get skewed.
- viggity 12y agoMedian might solve some of that issue, unfortunately it is computationally heavy to do median on a rolling basis, unlike average. Part of the reason the filters work so quickly is because when I add or remove items from the active set, I can just add/subtract from the total and the count for that one item. With median, I'd have to keep the active list sorted which even with a binary tree under the covers is still more expensive than two math operations. The filtering library under the cover is crossfilter.