docs: public static double max(final double[] data, final int startInclusive, final int endExclusive) {
      checkArgument(endExclusive > startInclusive);
      checkArgument(startInclusive >= 0);
      checkArgument(endExclusive <= data.length);
  
      double maxValue = Double.NEGATIVE_INFINITY;
      for (int i = startInclusive; i < endExclusive; ++i) {
        maxValue = Math.max(maxValue, data[i]);
      }
      return maxValue;
    }