Is there an elegant PDL function that gets a list of values ββand returns a list of 80% of the original values, which are the lowest?
For example: If I have a list like this: (9, 4, 1, 2, 7, 8, 3, 5, 6, 10)
I would like to get (1, 2, 3, 4, 5, 6, 7, 8) after calling this function in the original list (the order of the values ββdoesn't matter - it doesn't need to sort the values).
I found PDL :: Ufunc :: oddpct which can return the 80th percentile, but I would like to get a list of values ββbefore this percentile. I can do it myself, but if there is something out of the box - why not use it?
Thanks!!!
source share