28 for (
const auto& par : params) {
29 if (par.name().size() > result)
30 result = par.name().size();
41 std::ostringstream ostr;
55 std::cout << ostr.str() <<
"\n";
60 std::ostringstream result;
62 result <<
"FitPrintService::update() -> Info."
71 std::ostringstream result;
74 result <<
"Wall time since last call:" << std::fixed << std::setprecision(2)
83 std::ostringstream result;
88 for (
const auto& par : params) {
90 << std::setprecision(6) <<
" " << par.startValue() <<
" " << par.limits().toString()
91 <<
" " << par.value() <<
"\n";
99 std::ostringstream result;
103 result <<
"This was the last iteration." << std::endl;
104 result <<
"Total time spend: " << std::fixed << std::setprecision(2) <<
m_run_time.
runTime()
Defines class FitObjective.
Defines class FitPrintService.
Defines a few helper functions.
Holds vector of SimDataPairs (experimental data and simulation results) for use in fitting.
bool isFirstIteration() const
IterationInfo iterationInfo() const
Fit::MinimizerResult minimizerResult() const
void print(const FitObjective &objective)
WallclockTimer m_last_call_time
std::string parameterString(const FitObjective &objective)
std::string fitResultString(const FitObjective &objective)
std::string iterationHeaderString(const FitObjective &objective)
std::string wallTimeString()
WallclockTimer m_run_time
std::string toString() const
Returns multi-line string representing minimization results.
A collection of fit parameters.
Fit::Parameters parameters() const
unsigned iterationCount() const
Returns current number of minimizer iterations.
double runTime() const
returns run time in sec.
std::string scientific(const T value, int n=10)
Returns scientific string representing given value of any numeric type.
std::string padRight(const std::string &name, size_t length)
Returns string right-padded with blanks.
size_t length_of_longest_name(const Fit::Parameters ¶ms)