in reply to optimize percentile counting in hash
#!/usr/bin/perl use warnings; use strict; use Statistics::Descriptive; # # Warning: untested code. # my @data = (1,7,2,19,3,4,21,1092,6); my $stat = Statistics::Descriptive::Full->new(); $stat->add_data(@data); $stat->sort_data(); print $stat->percentile(25);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: optimize percentile counting in hash
by max210 (Novice) on Mar 21, 2008 at 14:02 UTC | |
by dwm042 (Priest) on Mar 21, 2008 at 15:27 UTC | |
by max210 (Novice) on Mar 23, 2008 at 15:13 UTC |