ReFRACtor
connor_convergence.h
Go to the documentation of this file.
1 #ifndef CONNOR_CONVERGENCE_H
2 #define CONNOR_CONVERGENCE_H
3 #include "convergence_check.h"
4 #include "forward_model.h"
5 #include <boost/shared_ptr.hpp>
6 
7 namespace FullPhysics {
8 /****************************************************************/
15 public:
17  double Threshold,
18  int Max_iteration, int Max_divergence, double Max_chisq);
19  virtual ~ConnorConvergence() {}
20  virtual void convergence_check(const FitStatistic& fit_stat_last,
21  FitStatistic& fit_stat,
22  bool& has_converged,
23  bool& convergence_failed,
24  double& gamma,
25  bool& step_diverged);
26  virtual void evaluate_quality(FitStatistic& fit_stat,
27  const blitz::Array<double, 1>& Residual,
28  const blitz::Array<double, 1>& Residual_cov_diag);
29  virtual void print(std::ostream& Os) const;
30  // Maximum number of iterations.
31  inline int maximum_number_iteration() const { return max_iteration; }
32  inline void maximum_number_iteration(int Max_iter) { max_iteration = Max_iter; }
33 private:
35  double threshold;
36  int max_iteration;
37  int max_divergence;
38  double max_chisq;
39 };
40 }
41 #endif
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.
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.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
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.

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:08