Fast Median Filter over arbitrary datatypes (martianlantern.github.io) 38 points by martianlantern 7mo ago ↗ HN
[–] ncruces 7mo ago ↗ Just because the article mentions median-of-medians, I'd like to call out median-of-ninthers: https://erdani.org/research/sea2017.pdfI was able to use this to implement practical deterministic linear time median selection in Go: https://github.com/ncruces/sort/blob/main/quick/quick.go
[–] munro 7mo ago ↗ seriously cool, i just did something similar with quantiles for even bucketizing on arb key data types (still needs ord tho)
2 comments
[ 2.4 ms ] story [ 17.0 ms ] threadI was able to use this to implement practical deterministic linear time median selection in Go: https://github.com/ncruces/sort/blob/main/quick/quick.go