public static double percentile ( long [ ] counts , double p ) { double [ ] pcts = new double [ ] { p } ; double [ ] results = new double [ 1 ] ; percentiles ( counts , pcts , results ) ; return results [ 0 ] ; }
Compute a percentile based on the counts for the buckets .