didn't work for my Perl v5.18.4
need to change the final line to:
return (sort {$a <=> $b} @$aref)[$percentile];because otherwise it sorts in alphabetical not numeric order.
In reply to Re^2: Using Statistics::Descriptive for percentiles
by Anonymous Monk
in thread Using Statistics::Descriptive for percentiles
by Hena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |