code: public double gMeasure(int output) {
          double precision = precision(output);
          double recall = recall(output);
          return EvaluationUtils.gMeasure(precision, recall);
      }
docs: Calculate the G-measure for the given output
  
  @param output The specified output
  @return The G-measure for the specified output