code: public static double computeCorrelation(final List<Double> list1, final List<Double> list2)
      {
          final SpearmansRankCorrelation_old src = new SpearmansRankCorrelation_old();
          for (int i = 0; i < list1.size(); i++) {
              src.addXValue(Integer.toString(i), list1.get(i));
              src.addYValue(Integer.toString(i), list2.get(i));
              i++;
          }
          return src.calculate();
      }
docs: Computes the correlation between two datasets.
  @param list1 The first dataset as a list.
  @param list2 The second dataset as a list.
  @return The correlation between the two datasets.