add ability to check percentage of bad values

rationale being that sometimes it might be OK if some points are outside the
threshold for a given window. e.g. test that _all_ points in the lookback
window must be outside the threshold, not just one.