Fix Issue 14181 - Wrong document for std.mathspecial.normalDistribution

This commit is contained in:
majiang 2015-02-15 15:38:34 +09:00
parent d494e27c35
commit ee7d941b9a

View file

@ -309,7 +309,7 @@ real erfc(real x)
* The normal (or Gaussian, or bell-shaped) distribution is
* defined as:
*
* normalDist(x) = 1/$(SQRT) $(PI) $(INTEGRATE -$(INFIN), x) exp( - $(POWER t, 2)/2) dt
* normalDist(x) = 1/$(SQRT)(2$(PI)) $(INTEGRATE -$(INFIN), x) exp( - $(POWER t, 2)/2) dt
* = 0.5 + 0.5 * erf(x/sqrt(2))
* = 0.5 * erfc(- x/sqrt(2))
*