From af35f1bcf0d0f860d5081617aa500f639fe27dd8 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Mon, 27 Apr 2009 11:12:13 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@32 ed2142bd-67ad-457f-ba7c-d818d4011675 --- core/fitter.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/fitter.hpp b/core/fitter.hpp index 6e2914f..20b2450 100644 --- a/core/fitter.hpp +++ b/core/fitter.hpp @@ -496,6 +496,11 @@ namespace opt_utilities return do_eval(x,reform_param(p)); } + Ty eval_raw(const Tx& x,const Tp& p) + { + return do_eval(x,reform_param(p)); + } + virtual Ty do_eval(const Tx& x,const Tp& p)=0; private: @@ -591,6 +596,15 @@ namespace opt_utilities } return p_model->eval(x,p); } + + Ty eval_model_raw(const Tx& x,const Tp& p) + { + if(p_model==0) + { + throw model_undefined(); + } + return p_model->eval_raw(x,p); + } public: -- cgit v1.2.2