From a620837fc33ef740e95f8092df0cfe7d4222a656 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Tue, 4 Jan 2011 14:41:29 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@153 ed2142bd-67ad-457f-ba7c-d818d4011675 --- error_estimator/error_estimator.hpp | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/error_estimator/error_estimator.hpp b/error_estimator/error_estimator.hpp index 1e9fa84..4324cd0 100644 --- a/error_estimator/error_estimator.hpp +++ b/error_estimator/error_estimator.hpp @@ -2,14 +2,24 @@ #define ERROR_EST #include #include +#include +#include namespace opt_utilities { template void estimate_error(fitter& fit,const Tstr& pname,typename element_type_trait::element_type& lower,typename element_type_trait::element_type& upper,const Ts& dchi) { - typedef typename element_type_trait::element_type Tpe; + std::vector pnames; + std::vector pvalues; + + for(int i=0;i& >(fit.get_param_modifier())-=freeze_param(pname); + for(int i=0;i