From e7281b5c337f9684dc40c809262afc9359b0c771 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 7 Mar 2014 17:52:25 +0100 Subject: fix --- stddev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stddev') diff --git a/stddev b/stddev index 891c4c9..5cda0e0 100755 --- a/stddev +++ b/stddev @@ -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] -- cgit v1.2.3