diff options
Diffstat (limited to 'vmodels')
-rw-r--r-- | vmodels/gauss1d.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vmodels/gauss1d.hpp b/vmodels/gauss1d.hpp index 5576c89..670247d 100644 --- a/vmodels/gauss1d.hpp +++ b/vmodels/gauss1d.hpp @@ -35,8 +35,8 @@ namespace opt_utilities T N=get_element(param,0); T x0=get_element(param,1); T sigma=get_element(param,2); - optvec<T> y=(x-x0)/2./sigma; - return N*exp(-y*y); + optvec<T> y=(x-x0)/sigma; + return N*exp(-y*y/2.); } private: |