# [SciPy-dev] percentileofscore in svn

Ariel Rokem arokem@berkeley....
Sat Nov 22 10:55:55 CST 2008

```Hi Josef - cool reworking of the function. I am not quite following - what
do you mean "handle a vector of scores at the same
time"?

Ariel

On Sat, Nov 22, 2008 at 6:49 AM, <josef.pktd@gmail.com> wrote:

> On Sat, Nov 22, 2008 at 3:01 AM,  <josef.pktd@gmail.com> wrote:
>
> >>>> percentileofscorein([1,1,1,1],1)  # yours
> > 62.5
> >>>> percentileofscore([1,1,1,1],1)  # wikipedia
> > 50.0
> >>>> percentileofscore([1,1,1,1,1,2,2,2,2,2],1)  # wikipedia
> > 25.0
> >>>> percentileofscorein([1,1,1,1,1,2,2,2,2,2],1)  # yours
> > 30.0
> >>>> percentileofscorein([1,1,1],1)  # yours
> > 66.666666666666657
> >>>> percentileofscore([1,1,1],1)  # wikipedia
> > 50.0
> >>>> percentileofscorein([1,1,1,1,1,2,2,2,2,2],2)  # yours
> > 80.0
> >>>> percentileofscore([1,1,1,1,1,2,2,2,2,2],2)  # wikipedia
> > 75.0
> >
>
> Actually, these numbers make perfect sense are rank orderings. Last
> night, I was thinking too much in terms of the [0,1] interval.
>
> I merged the two versions, and made "rank" as default, because it has
> better backwards compatibility. I also added tests.
>
> How if percentileofscore could handle a vector of scores at the same
> time, then this function would be really useful.
>
> Josef
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-dev/attachments/20081122/ff259d9b/attachment-0001.html
```