code: public double[] getPercentiles(double[] percents, double[] percentiles) {
          for (int i = 0; i < percents.length; i++) {
              percentiles[i] = computePercentile(percents[i]);
          }
          return percentiles;
      }
docs: Gets the requested percentile statistics.
  
  @param percents array of percentile values to compute,
  which must be in the range {@code [0 .. 100]}
  @param percentiles array to fill in with the percentile values;
  must be the same length as {@code percents}
  @return the {@code percentiles} array
  @see <a href="http://en.wikipedia.org/wiki/Percentile">Percentile (Wikipedia)</a>
  @see <a href="http://cnx.org/content/m10805/latest/">Percentile</a>