1 #ifndef _Q_MINIMIZER_HH_
2 #define _Q_MINIMIZER_HH_
14 #include <gsl/gsl_min.h>
51 static double MinusFunc(
double x,
double* params);
#define Q_BEGIN_NAMESPACE
generic C++ interface on static functions
double(* QRoutinePointer)(double, double *params)
pointer to function
find maximum and minimum of a QMathFunction, the minimum search stops when |a - b| < epsabs + epsrel ...
double GetMaximum(QMathFunction func, double minx, double maxx, double epsabs=0.001, double epsrel=0.0)
get function maximum
void SetVerbose()
verbose (print iteration steps)
gsl_min_fminimizer * fMinimizer
underlying gsl minimizer
static double MinusFunc(double x, double *params)
pointer to mins this function, (to find maximum with the minimum algorithm)
double GetMinimum(QMathFunction func, double minx, double maxx, double epsabs=0.001, double epsrel=0.0)
get function minimum
static QMathFunction::QRoutinePointer fCurrentFunction
pointer to current function being minimized