Can I improve on this?sub std_dev($) { my $listref = $_[0]; my $avg = avg $listref; sqrt(sum([map{($avg-$_)*($avg-$_)}@{$listref}])/@{$listref}); }
In reply to Re: How do I get the root mean square of a list?
by larryk
in thread How do I get the root mean square of a list?
by larryk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |