diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/fitter.hpp | 9 | ||||
-rw-r--r-- | core/freeze_param.hpp | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/core/fitter.hpp b/core/fitter.hpp index 9caae67..5ec85c5 100644 --- a/core/fitter.hpp +++ b/core/fitter.hpp @@ -1266,6 +1266,15 @@ namespace opt_utilities }
return *(this->p_statistic);
}
+
+ /**
+ \return current statstic value
+ */
+ Ts get_statistic_value()
+ {
+ Tp current_params(get_model().get_all_params());
+ return get_statistic().eval(get_model().deform_param(current_params));
+ }
/**
Get the optimization method that used
diff --git a/core/freeze_param.hpp b/core/freeze_param.hpp index 015398e..abd8b17 100644 --- a/core/freeze_param.hpp +++ b/core/freeze_param.hpp @@ -150,9 +150,9 @@ namespace opt_utilities { if(param_names.find(name)==param_names.end()) { - return "thawed"; + return Tstr("thawed"); } - return "frozen"; + return Tstr("frozen"); } public: |