diff --git a/src/main/java/com/conveyal/r5/analyst/TravelTimeReducer.java b/src/main/java/com/conveyal/r5/analyst/TravelTimeReducer.java index 1e6a19884..86e641e5d 100644 --- a/src/main/java/com/conveyal/r5/analyst/TravelTimeReducer.java +++ b/src/main/java/com/conveyal/r5/analyst/TravelTimeReducer.java @@ -186,8 +186,8 @@ private static int findPercentileIndex(int nElements, double percentile) { // Note that the commented-out definition is used in modern version of Conveyal Analysis, and the other version // was removed by #563. However, we used the previous version for the Getting Charlie off the MTA paper, and this // hacks it back in for comparability. - //return (int)(Math.ceil(percentile / 100 * nElements) - 1); - return (int) Math.round(percentile / 100 * nElements); + return (int)(Math.ceil(percentile / 100 * nElements) - 1); + // return (int) Math.round(percentile / 100 * nElements); } /**