| 5 | 5 | Trunk version robust median had two issues. First, the cumulative bins were set as (effectively) identical to those of the histogram bins. This is a mistake. Cumulative bounds denote the value that is greater than NUM input values; histogram bounds denote the value that is smaller than all values in that bin. Secondly, the fitLinearSearchForYThenReturnBin was fitting against the midpoint of the cumulative bins. This is not correct for the cumulative distribution. We know only the values of the CDF at those bound values, and so that is what we should be fitting. |