its giving incorrect percentile values :(
to find percentile rank of score x out of n scores:
(number of scores below x)/n*100 = percentile rank
need to sort the hash first, i used index value of
the array to find number of scores below x.
x is value of hash taken one by one and returning the percentile
In reply to Re^4: optimize percentile counting in hash
by Anonymous Monk
in thread optimize percentile counting in hash
by max210
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |