aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: