diff options
author | Patrick Simianer <p@simianer.de> | 2014-03-07 17:52:25 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-03-07 17:52:25 +0100 |
commit | e7281b5c337f9684dc40c809262afc9359b0c771 (patch) | |
tree | ad3693a8ab09fbadf300ce5db7f13555c8b5005d /stddev | |
parent | 133533638df8f748eb2982c1a762adb013d2ae4e (diff) |
fix
Diffstat (limited to 'stddev')
-rwxr-xr-x | stddev | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ cached.each { |v| var += (avg - v)**2 } -stddev = Math.sqrt(var) +stddev = Math.sqrt(var/i.to_f) if cfg[:round] >= 0 puts stddev.round cfg[:round] |