aboutsummaryrefslogtreecommitdiffstats
path: root/error_estimator
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2012-01-23 19:54:25 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2012-01-23 19:54:25 +0000
commiteff60a225541f400f7e52fe2d42ce5a9ec399ccc (patch)
treee6e9f09acd16b8113e0429bb1052ecf91bab28f8 /error_estimator
parent5855acc5ef57ec0fcc2b43447df939ece970c40c (diff)
downloadopt-utilities-eff60a225541f400f7e52fe2d42ce5a9ec399ccc.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@219 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'error_estimator')
-rw-r--r--error_estimator/error_estimator.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/error_estimator/error_estimator.hpp b/error_estimator/error_estimator.hpp
index 8fc8439..5d46e49 100644
--- a/error_estimator/error_estimator.hpp
+++ b/error_estimator/error_estimator.hpp
@@ -59,7 +59,7 @@ namespace opt_utilities
//Make sure we start from an optimal parameter set
fit.fit();
//stores origin parameter values
- for(int i=0;i<fit.get_num_params();++i)
+ for(size_t i=0;(size_t)i<fit.get_num_params();++i)
{
pnames.push_back(fit.get_param_info(i).get_name());
pvalues.push_back(fit.get_param_info(i).get_value());
@@ -138,7 +138,7 @@ namespace opt_utilities
}
}
- for(int i=0;i<fit.get_num_params();++i)
+ for(size_t i=0;i<fit.get_num_params();++i)
{
fit.set_param_value(pnames[i],pvalues[i]);
}
@@ -195,7 +195,7 @@ namespace opt_utilities
//restore the param_modifier
dynamic_cast<freeze_param<Ty,Tx,Tp,Tstr>& >(fit.get_param_modifier())-=freeze_param<Ty,Tx,Tp,Tstr>(pname);
//restore the origin param values
- for(int i=0;i<fit.get_num_params();++i)
+ for(size_t i=0;i<fit.get_num_params();++i)
{
fit.set_param_value(pnames[i],pvalues[i]);
}