Commit 7e7f49be authored by Thomas Vincent's avatar Thomas Vincent

Change gaussian formulae

parent d07ddef6
......@@ -71,7 +71,7 @@ def gaussian(x, area, center, sigma):
:param float sigma:
:rtype: numpy.ndarray
"""
return (area * (1. / (_SQRT_2_PI * sigma)) *
return ((area / (_SQRT_2_PI * sigma)) *
numpy.exp(-0.5 * ((x - center) / sigma) ** 2))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment