MultiNumGradFunction class to wrap a normal function in a gradient function using numerical gradient calculation provided by the class Derivator (based on GSL numerical derivation)
Definition at line 49 of file MultiNumGradFunction.h.
|
double | DoDerivative (const double *x, unsigned int icoord) const |
|
double | DoEval (const double *x) const |
|
|
static double | fgEps = 0.001 |
|
#include <Math/MultiNumGradFunction.h>
◆ MultiNumGradFunction() [1/2]
ROOT::Math::MultiNumGradFunction::MultiNumGradFunction |
( |
const IMultiGenFunction & |
f | ) |
|
|
inline |
◆ MultiNumGradFunction() [2/2]
template<class FuncType >
ROOT::Math::MultiNumGradFunction::MultiNumGradFunction |
( |
FuncType |
f, |
|
|
int |
n |
|
) |
| |
|
inline |
Constructor from a generic function (pointer or reference) and number of dimension implementiong operator () (double * x)
Definition at line 70 of file MultiNumGradFunction.h.
◆ ~MultiNumGradFunction()
ROOT::Math::MultiNumGradFunction::~MultiNumGradFunction |
( |
| ) |
|
|
inline |
◆ Clone()
◆ DoDerivative()
double ROOT::Math::MultiNumGradFunction::DoDerivative |
( |
const double * |
x, |
|
|
unsigned int |
icoord |
|
) |
| const |
|
private |
◆ DoEval()
double ROOT::Math::MultiNumGradFunction::DoEval |
( |
const double * |
x | ) |
const |
|
inlineprivate |
◆ GetDerivPrecision()
double ROOT::Math::MultiNumGradFunction::GetDerivPrecision |
( |
| ) |
|
|
static |
◆ NCalls()
unsigned int ROOT::Math::MultiNumGradFunction::NCalls |
( |
| ) |
const |
|
inline |
◆ NDim()
unsigned int ROOT::Math::MultiNumGradFunction::NDim |
( |
| ) |
const |
|
inlinevirtual |
◆ SetDerivPrecision()
void ROOT::Math::MultiNumGradFunction::SetDerivPrecision |
( |
double |
eps | ) |
|
|
static |
precision value used for calculating the derivative step-size h = eps * |x|.
The default is 0.001, give a smaller in case function chanes rapidly
Definition at line 54 of file MultiNumGradFunction.cxx.
◆ SetOwnership()
void ROOT::Math::MultiNumGradFunction::SetOwnership |
( |
bool |
on = true | ) |
|
|
inline |
◆ fDim
unsigned int ROOT::Math::MultiNumGradFunction::fDim |
|
private |
◆ fFunc
◆ fgEps
double ROOT::Math::MultiNumGradFunction::fgEps = 0.001 |
|
staticprivate |
◆ fNCalls
unsigned int ROOT::Math::MultiNumGradFunction::fNCalls |
|
mutableprivate |
◆ fOwner
bool ROOT::Math::MultiNumGradFunction::fOwner |
|
private |
The documentation for this class was generated from the following files: