From 87b6bca086d8f1be938eb4781c91726ad2ff4b38 Mon Sep 17 00:00:00 2001 From: Iskander Sharipov Date: Mon, 1 Oct 2018 11:45:55 +0300 Subject: [PATCH] metrics/teststat: replace `x = x y` with `x = y` --- 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