aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-04-27 11:12:13 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-04-27 11:12:13 +0000
commitaf35f1bcf0d0f860d5081617aa500f639fe27dd8 (patch)
tree2a0cce6e7ff438b54b492fe0eedd92e8320abbea
parent91a9dcce63179ea5b2279b032e9ffa85a29bb479 (diff)
downloadopt-utilities-af35f1bcf0d0f860d5081617aa500f639fe27dd8.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@32 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--core/fitter.hpp14
1 files changed, 14 insertions, 0 deletions
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: