replace percentile heuristic with blotch-counting threshold parameters