BornAgain  1.19.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 reflection and scattering
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_CORE_FITTING_FITPRINTSERVICE_H
21 #define BORNAGAIN_CORE_FITTING_FITPRINTSERVICE_H
22 
24 #include <string>
25 
26 class FitObjective;
27 
28 //! Prints fit statistics to standard output during minimizer iterations.
29 
31 public:
33 
34  void print(const FitObjective& objective);
35 
36 private:
37  std::string iterationHeaderString(const FitObjective& objective);
38  std::string wallTimeString();
39  std::string parameterString(const FitObjective& objective);
40  std::string fitResultString(const FitObjective& objective);
41 
44 };
45 
46 #endif // BORNAGAIN_CORE_FITTING_FITPRINTSERVICE_H
47 #endif // USER_API
Defines WallclockTimer class.
Holds vector of SimDataPairs (experimental data and simulation results) for use in fitting.
Definition: FitObjective.h:33
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.