summaryrefslogtreecommitdiff
path: root/statistics.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-07-05 10:54:18 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2015-07-05 10:54:18 +0100
commit16cc62a1d4d7c02a84b2ddc1538f5e81404b415c (patch)
tree529f3a26bdc2d8e71427771e3516a334d9a9d909 /statistics.lua
parent6e4fa56475b4375655befc61ef868bd39a1f2a5d (diff)
Code tidy and tweak
Diffstat (limited to 'statistics.lua')
-rw-r--r--statistics.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/statistics.lua b/statistics.lua
index aaa4f51..265ccb3 100644
--- a/statistics.lua
+++ b/statistics.lua
@@ -16,7 +16,7 @@ erf = function(x)
if x == 0 then return 0; end
local xSq = x * x
local aXSq = A * xSq
- local v = math.sqrt(1.0 - math.exp(-xSq * (B + aXSq)/(1.0 + aXSq)))
+ local v = math.sqrt(1.0 - math.exp(-xSq * (B + aXSq) / (1.0 + aXSq)))
return (x > 0 and v) or -v
end
@@ -147,4 +147,4 @@ statistics.poisson = function(lambda, max)
return poisson(lambda, max)
end
-return statistics
+return statistics \ No newline at end of file