code: public double accuracy(int outputNum) {
          assertIndex(outputNum);
          return (countTruePositive[outputNum] + countTrueNegative[outputNum]) / (double) totalCount(outputNum);
      }
docs: Get the accuracy for the specified output