|
BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
| IterationInfo () | |
| void | update (const Fit::Parameters ¶ms, double chi2) |
| unsigned | iterationCount () const |
| double | chi2 () const |
| Fit::Parameters | parameters () const |
| std::map< std::string, double > | parameterMap () const |
Private Attributes | |
| double | m_chi2 |
| Fit::Parameters | m_current_parameters |
| unsigned | m_iteration_count |
Stores fit iteration info to track fit flow from various observers.
Used in context of FitObjective.
Definition at line 25 of file IterationInfo.h.
| IterationInfo::IterationInfo | ( | ) |
Definition at line 17 of file IterationInfo.cpp.
| void IterationInfo::update | ( | const Fit::Parameters & | params, |
| double | chi2 | ||
| ) |
Definition at line 19 of file IterationInfo.cpp.
References chi2(), m_chi2, m_current_parameters, and m_iteration_count.
Referenced by FitStatus::update().
| unsigned IterationInfo::iterationCount | ( | ) | const |
Returns current number of minimizer iterations.
Definition at line 26 of file IterationInfo.cpp.
References m_iteration_count.
Referenced by FitObjective::isFirstIteration(), and FitPrintService::iterationHeaderString().
| double IterationInfo::chi2 | ( | ) | const |
Definition at line 31 of file IterationInfo.cpp.
References m_chi2.
Referenced by FitPrintService::iterationHeaderString(), and update().
| Fit::Parameters IterationInfo::parameters | ( | ) | const |
Definition at line 36 of file IterationInfo.cpp.
References m_current_parameters.
Referenced by FitPrintService::parameterString().
| std::map< std::string, double > IterationInfo::parameterMap | ( | ) | const |
Returns map of fit parameter names and its current values.
Definition at line 41 of file IterationInfo.cpp.
References m_current_parameters.
|
private |
Definition at line 43 of file IterationInfo.h.
|
private |
Definition at line 44 of file IterationInfo.h.
Referenced by parameterMap(), parameters(), and update().
|
private |
Definition at line 45 of file IterationInfo.h.
Referenced by iterationCount(), and update().