From 19f2b2cbd127a15034af6a1d1256b47c38c57543 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Fri, 31 Aug 2012 05:45:10 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@241 ed2142bd-67ad-457f-ba7c-d818d4011675 --- models/beta1d.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/beta1d.hpp b/models/beta1d.hpp index bd5d292..9885098 100644 --- a/models/beta1d.hpp +++ b/models/beta1d.hpp @@ -40,10 +40,10 @@ namespace opt_utilities T do_eval(const T& x,const std::vector& param) { - T S0=get_element(param,0); + T S0=std::abs(get_element(param,0)); T r_c=get_element(param,1); - T beta=get_element(param,2); - T bkg=get_element(param,3); + T beta=std::abs(get_element(param,2)); + T bkg=std::abs(get_element(param,3)); return bkg+S0*pow(1+(x*x)/(r_c*r_c),-3*beta+static_cast(.5)); } -- cgit v1.2.2