I use Statistics::Descriptive:
#!/usr/bin/env perl use strict; use warnings; use Data::Dump; use Statistics::Descriptive; my $stat = Statistics::Descriptive::Full->new(); my @act_ret = ( 1, 2, 3, 4 ); $stat->add_data(@act_ret); dd $stat->standard_deviation(); __END__ karls-mac-mini:monks karl$ ./deviation.pl 1.29099444873581
Seems to work ;-)
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
In reply to Re: PERL Standard Deviation lib
by karlgoethebier
in thread PERL Standard Deviation lib
by PiyaPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |