docs: protected static <A> double[] computeNormalizedRanks(final NumberArrayAdapter<?, A> adapter, final A data, int len) {
      // Sort the objects:
      int[] s1 = sortedIndex(adapter, data, len);
      final double norm = .5 / (len - 1);
      double[] ret = new double[len];
      for(int i = 0; i < len;) {
        final int start = i++;
        final double val = adapter.getDouble(data, s1[start]);
        while(i < len && adapter.getDouble(data, s1[i]) <= val) {
          i++;
        }
        final double score = (start + i - 1) * norm;
        for(int j = start; j < i; j++) {
          ret[s1[j]] = score;
        }
      }
      return ret;
    }