Jpp 19.3.0-rc.2
the software that should make you happy
|
Conjugate gradient fit. More...
#include <JGradient.hh>
Public Member Functions | |
JGradient (const size_t Nmax=std::numeric_limits< size_t >::max(), const size_t Nextra=0, const double epsilon=1.0e-4, const int debug=3) | |
Constructor. | |
template<class T > | |
double | operator() (const T &getChi2) |
Fit. | |
Public Attributes | |
size_t | Nmax |
maximum number of iterations | |
size_t | Nextra |
maximum number of extra steps | |
double | epsilon |
epsilon | |
int | debug |
debug | |
size_t | numberOfIterations |
Private Member Functions | |
template<class T > | |
double | evaluate (const T &getChi2) |
Evaluate gradient. | |
void | move (const double factor) |
Move. | |
Private Attributes | |
std::vector< double > | gradient |
Conjugate gradient fit.
Definition at line 73 of file JGradient.hh.
|
inline |
Constructor.
The number of iterations and epsilon refer to the number of steps and the distance to the minimum, respectively.
The number of extra steps can be used to overcome a possible hurdle on the way.
Nmax | maximum number of iterations |
Nextra | maximum number of extra steps |
epsilon | epsilon |
debug | debug |
Definition at line 88 of file JGradient.hh.
|
inline |
Fit.
The template parameter should provide for the following function operator.
double operator()(int option);
The value of the option corresponds to the following cases.
getChi2 | chi2 function |
Definition at line 115 of file JGradient.hh.
|
inlineprivate |
Evaluate gradient.
Definition at line 282 of file JGradient.hh.
|
inlineprivate |
Move.
factor | factor |
Definition at line 345 of file JGradient.hh.
size_t JFIT::JGradient::Nmax |
maximum number of iterations
Definition at line 268 of file JGradient.hh.
size_t JFIT::JGradient::Nextra |
maximum number of extra steps
Definition at line 269 of file JGradient.hh.
double JFIT::JGradient::epsilon |
epsilon
Definition at line 270 of file JGradient.hh.
int JFIT::JGradient::debug |
debug
Definition at line 271 of file JGradient.hh.
size_t JFIT::JGradient::numberOfIterations |
Definition at line 273 of file JGradient.hh.
|
private |
Definition at line 358 of file JGradient.hh.