ReFRACtor
chisq_convergence.h
Go to the documentation of this file.
1 #ifndef CHISQ_CONVERGENCE_H
2 #define CHISQ_CONVERGENCE_H
3 #include "convergence_check.h"
4 
5 namespace FullPhysics {
6 /****************************************************************/
17 public:
18  ChisqConvergence(double stopping_criteria = 0.001,
19  double dropf = 0.1, double boostf = 10,
20  double min_chisq = 0.01,
21  int max_iteration = 50);
22  virtual ~ChisqConvergence() {}
23  virtual void convergence_check(const FitStatistic& fit_stat_last,
24  FitStatistic& fit_stat,
25  bool& has_converged,
26  bool& convergence_failed,
27  double& gamma,
28  bool& step_diverged);
29  virtual void evaluate_quality(FitStatistic& fit_stat,
30  const blitz::Array<double, 1>& Residual,
31  const blitz::Array<double, 1>& Residual_cov_diag);
32  virtual void print(std::ostream& Os) const;
33 private:
34  double stopping_criteria_, dropf_, boostf_, min_chisq_, max_iteration_;
35 };
36 }
37 #endif
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.
This class holds various parameters describing how good of a fit we have.
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.
ChisqConvergence(double stopping_criteria=0.001, double dropf=0.1, double boostf=10, double min_chisq=0.01, int max_iteration=50)
Constructor.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
virtual void print(std::ostream &Os) const
Print object to stream.

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