diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/fitter.hpp | 14 |
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:
|