code: private double getScore(int[] contingencyTable, SignificanceTest test) {
          switch (test) {
          case PMI:
              return pmi(contingencyTable);
          case CHI_SQUARED:
              return chiSq(contingencyTable);
          case LOG_LIKELIHOOD:
              return logLikelihood(contingencyTable);
          default:
              throw new Error(test + " not implemented yet");
          }
      }
docs: Returns the score of the contingency table using the specified
  significance test
  
  @param contingencyTable a contingency table specified as four {@code int}
  values
  @param test the significance test to use in evaluating the table