code: protected static <A> double[] ranks(final NumberArrayAdapter<?, A> adapter, final A data, int len) {
      return ranks(adapter, data, sortedIndex(adapter, data, len));
    }
docs: Compute ranks of all objects, ranging from 1 to len.
  
  Ties are given the average rank.
  
  @param adapter Data adapter
  @param data Data array
  @param len Length of data
  @return Array of scores