From 16cc62a1d4d7c02a84b2ddc1538f5e81404b415c Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 5 Jul 2015 10:54:18 +0100 Subject: Code tidy and tweak --- statistics.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'statistics.lua') 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 -- cgit v1.2.3