aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2010-08-16 17:24:38 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2010-08-16 17:24:38 +0000
commitca5f2579f1d20bf2af121d154bf12c7ff54e9c31 (patch)
tree67c5f629b38398c9d68842e41895789f8247fa38
parent4146f757b81de0ffcb7729aec3695debb2bed6ef (diff)
downloadopt-utilities-ca5f2579f1d20bf2af121d154bf12c7ff54e9c31.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@134 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--vmodels/gauss1d.hpp4
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: