From a408a2c8afffbe3b45501c9c7f66624287a1e965 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Thu, 21 Oct 2010 11:29:19 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@140 ed2142bd-67ad-457f-ba7c-d818d4011675 --- models/gauss1d.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/gauss1d.hpp b/models/gauss1d.hpp index 94a390e..8de89a5 100644 --- a/models/gauss1d.hpp +++ b/models/gauss1d.hpp @@ -34,8 +34,8 @@ namespace opt_utilities T N=get_element(param,0); T x0=get_element(param,1); T sigma=get_element(param,2); - T y=(x-x0)/2./sigma; - return N*exp(-y*y); + T y=(x-x0)/sigma; + return N*exp(-y*y/2); } private: -- cgit v1.2.2