docs: public int precision(int recall) {
      int optimum = 0;
      for (int right = 0; right <= recall; right++) {
        int candidate = numpositive[right] + numnegative[recall - right];
        if (candidate > optimum) {
          optimum = candidate;
        }
      }
      return optimum;
    }