BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
FitProgressInfo.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Fit/FitProgressInfo.h
6 //! @brief Defines class FitProgressInfo
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_GUI_VIEW_FIT_FITPROGRESSINFO_H
16 #define BORNAGAIN_GUI_VIEW_FIT_FITPROGRESSINFO_H
17 
18 #include <string>
19 #include <vector>
20 
21 //! The FitProgressInfo class contains all essential information about fit progress.
22 //! It is send from GUIFitObserver to FitSuiteWidget on every nth iteration.
23 
25 public:
27 
28  double chi2() const { return m_chi2; }
29  int iterationCount() const { return m_iteration_count; }
30  std::vector<double> parValues() const { return m_values; }
31  std::string logInfo() const { return m_log_info; }
32  std::vector<double> simValues() const { return m_sim_values; }
33 
34  friend class GUIFitObserver;
35 
36 private:
37  double m_chi2;
39  std::vector<double> m_values;
40  std::string m_log_info;
41  std::vector<double> m_sim_values;
42 };
43 
44 #endif // BORNAGAIN_GUI_VIEW_FIT_FITPROGRESSINFO_H
The FitProgressInfo class contains all essential information about fit progress. It is send from GUIF...
std::string logInfo() const
std::string m_log_info
std::vector< double > parValues() const
int iterationCount() const
double chi2() const
std::vector< double > simValues() const
std::vector< double > m_values
std::vector< double > m_sim_values
Serves as observer for FitObjective and saves fit iteration data for later display in GUI widgets.