Skip to content

Commit

Permalink
metrics/teststat: replace x = x <op> y with x <op>= y (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iskander (Alex) Sharipov authored and peterbourgon committed Oct 1, 2018
1 parent 85a8f27 commit 14dac5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/teststat/populate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14dac5d

Please sign in to comment.