aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2010-10-21 11:29:19 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2010-10-21 11:29:19 +0000
commita408a2c8afffbe3b45501c9c7f66624287a1e965 (patch)
tree70a474b8a76cac9a85bf711587b8883e96ee81e0
parentacb9d6a8044dd86ff4dab9065b9ba13a7e06dc10 (diff)
downloadopt-utilities-a408a2c8afffbe3b45501c9c7f66624287a1e965.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@140 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--models/gauss1d.hpp4
1 files 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: