summaryrefslogtreecommitdiff
path: root/stddev
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-11-12 13:57:07 +0100
committerPatrick Simianer <p@simianer.de>2015-11-12 13:57:07 +0100
commit5c2833c505dda0d1646b8f8c1e62abd391f0401e (patch)
tree0259c7c2bdb531c09587a744869848d87f4bbd9e /stddev
parentef282dbe4fef1b0ae0c8544f0bb84ba674c68de7 (diff)
parent8151031373c08ccd714a99f50783eafcb54d2010 (diff)
Merge branch 'master' of github.com:pks/scripts
Diffstat (limited to 'stddev')
-rwxr-xr-xstddev6
1 files changed, 3 insertions, 3 deletions
diff --git a/stddev b/stddev
index a7397b2..2634f63 100755
--- a/stddev
+++ b/stddev
@@ -2,7 +2,7 @@
require 'trollop'
-cfg = Trollop::options do
+conf = Trollop::options do
banner "stddev [-r <d>] < <one number per line>"
opt :round, "Number of digits after decimal point.", :type => :int, :default => -1
end
@@ -26,8 +26,8 @@ cached.each { |v|
stddev = Math.sqrt(var/i.to_f)
-if cfg[:round] >= 0
- puts stddev.round cfg[:round]
+if conf[:round] >= 0
+ puts stddev.round conf[:round]
else
puts stddev
end