From 14dac5d9deeae3bde84ad025a4498d5cf5ec74f2 Mon Sep 17 00:00:00 2001 From: "Iskander (Alex) Sharipov" Date: Mon, 1 Oct 2018 23:15:35 +0300 Subject: [PATCH] metrics/teststat: replace `x = x y` with `x = y` (#769) --- metrics/teststat/populate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/teststat/populate.go b/metrics/teststat/populate.go index 568a5691e..ae50d1083 100644 --- a/metrics/teststat/populate.go +++ b/metrics/teststat/populate.go @@ -64,8 +64,8 @@ func erfinv(y float64) float64 { z = math.Sqrt(-math.Log((1.0 - y) / 2.0)) x = (((c[3]*z+c[2])*z+c[1])*z + c[0]) / ((d[1]*z+d[0])*z + 1.0) } - x = x - (math.Erf(x)-y)/(2.0/math.SqrtPi*math.Exp(-x*x)) - x = x - (math.Erf(x)-y)/(2.0/math.SqrtPi*math.Exp(-x*x)) + x -= (math.Erf(x) - y) / (2.0 / math.SqrtPi * math.Exp(-x*x)) + x -= (math.Erf(x) - y) / (2.0 / math.SqrtPi * math.Exp(-x*x)) } return x