Is there an elegant PDL function which receives 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 so: (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 on the original list (The order of the values does not matter - it does not need to sort the values).
I found PDL::Ufunc::oddpct which can return the 80'th percentile but I would like to get a list of the values up to that percentile. I can do it myself but if there's something out of the box - why not use it?
Thanks!!!