docs: public double optimalCwa() {
      double acc = 0;
      for (int recall = 1; recall <= numSamples(); recall++) {
        acc += precision(recall) / (double) recall;
      }
      return acc / numSamples();
    }