code: public static double recall(long tpCount, long fnCount, double edgeCase) {
          //Edge case
          if (tpCount == 0 && fnCount == 0) {
              return edgeCase;
          }
  
          return tpCount / (double) (tpCount + fnCount);
      }
docs: Calculate the recall from true positive and false negative counts
  
  @param tpCount  True positive count
  @param fnCount  False negative count
  @param edgeCase Edge case values used to avoid 0/0
  @return Recall