docs: public static int argMin(final double[] x, final int startInclusive, final int endExclusive) {
      checkArgument(endExclusive > startInclusive);
      checkArgument(startInclusive >= 0);
      checkArgument(endExclusive <= x.length);
      double minValue = Double.MAX_VALUE;
      int minIndex = 0;
  
      for (int i = startInclusive; i < endExclusive; ++i) {
        final double val = x[i];
        if (val < minValue) {
          minIndex = i;
          minValue = val;
        }
      }
      return minIndex;
    }