BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FitPrintService.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Core/Fitting/FitPrintService.h
6 //! @brief Defines class FitPrintService.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_FITTING_FITPRINTSERVICE_H
16 #define BORNAGAIN_CORE_FITTING_FITPRINTSERVICE_H
17 
19 #include <string>
20 
21 class FitObjective;
22 
23 //! Prints fit statistics to standard output during minimizer iterations.
24 
26 {
27 public:
29 
30  void print(const FitObjective& objective);
31 
32 private:
33  std::string iterationHeaderString(const FitObjective& objective);
34  std::string wallTimeString();
35  std::string parameterString(const FitObjective& objective);
36  std::string fitResultString(const FitObjective& objective);
37 
40 };
41 
42 #endif // BORNAGAIN_CORE_FITTING_FITPRINTSERVICE_H
Defines WallclockTimer class.
Holds vector of SimDataPairs (experimental data and simulation results) for use in fitting.
Definition: FitObjective.h:34
Prints fit statistics to standard output during minimizer iterations.
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
A timer for measuring real (wall-clock) time spent between 'start' and 'stop' commands.