11 F.function = (double (*)(double,
void*))
fRoutine;
69 printf(
"%u ",(
unsigned int)p);
#define Q_BEGIN_NAMESPACE
double min(const Diana::QVector &v)
error class with error type and description
generic C++ interface on static functions
size_t fNParameters
number of parameters
virtual void Print()
print parameters and names if set
QMathFunction(QRoutinePointer funcpointer, unsigned int NParameters, double LowBound, double UpBound)
constructor
gsl_function GetGSLFunction()
return a gsl function
const QMathFunction & operator=(const QMathFunction &func)
operator=
QError GetMinimum(double &min, double &minpos, double epsabs=0.001, double epsrel=0.0)
get function minimum
double fUpBound
high function bound
void SetParameter(unsigned int p, double val)
set parameter value
QError GetMaximum(double &max, double &maxpos, double epsabs=0.001, double epsrel=0.0)
get function maximum
virtual ~QMathFunction()
destructor
void SetParName(unsigned int p, const char *name)
set parameter name
std::vector< const char * > fParNames
parameters names
QRoutinePointer fRoutine
pointer to the underlying static function
double fLowBound
low function bound
double * fParameters
array of parameters
virtual void SetTF1(TF1 &tf1)
set parameters from ROOT TF1
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)
double GetMinimum(QMathFunction func, double minx, double maxx, double epsabs=0.001, double epsrel=0.0)
get function minimum