1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-08 06:38:12 -04:00
This commit is contained in:
Kenichi Ishigaki 2012-09-03 15:12:27 +00:00
parent a057f2b119
commit 8f3215ded2

View file

@ -1522,7 +1522,7 @@ Here is a simple aggregate function which returns the variance
my $sigma = 0; my $sigma = 0;
foreach my $v ( @$self ) { foreach my $v ( @$self ) {
$sigma += ($x - $mu)**2; $sigma += ($v - $mu)**2;
} }
$sigma = $sigma / ($n - 1); $sigma = $sigma / ($n - 1);