1 #ifndef CONNOR_CONVERGENCE_H 2 #define CONNOR_CONVERGENCE_H 5 #include <boost/shared_ptr.hpp> 18 int Max_iteration,
int Max_divergence,
double Max_chisq);
23 bool& convergence_failed,
27 const blitz::Array<double, 1>& Residual,
28 const blitz::Array<double, 1>& Residual_cov_diag);
29 virtual void print(std::ostream& Os)
const;
This class holds various parameters describing how good of a fit we have.
virtual void convergence_check(const FitStatistic &fit_stat_last, FitStatistic &fit_stat, bool &has_converged, bool &convergence_failed, double &gamma, bool &step_diverged)
Check for the convergence of a Solver, or if we have taken a divergent step.
int maximum_number_iteration() const
void maximum_number_iteration(int Max_iter)
virtual void evaluate_quality(FitStatistic &fit_stat, const blitz::Array< double, 1 > &Residual, const blitz::Array< double, 1 > &Residual_cov_diag)
Evaluates the quality of a converged fit from the residuals and expected residual error...
This class tests for convergence of a Levenberg-Marquardt solver.
This class tests for convergence of a Levenberg-Marquardt solver.
virtual ~ConnorConvergence()
Contains classes to abstract away details in various Spurr Radiative Transfer software.
ConnorConvergence(const boost::shared_ptr< ForwardModel > &Fm, double Threshold, int Max_iteration, int Max_divergence, double Max_chisq)
Constructor.
virtual void print(std::ostream &Os) const
Print description of object.