aimstil
5.0.5
|
First derivative estimator of a monodimensional functional. More...
#include <cathier/minTools.h>
Public Types | |
typedef TFunctor::argument_type | input_prec |
typedef TFunctor::result_type | output_prec |
Public Member Functions | |
DerivativeEstimator (TFunctor functor) | |
void | setDelta (input_prec delta) |
const input_prec & | delta () const |
output_prec | operator() (input_prec x) |
Estimate gradient at position x by computing ( f(x+delta) - f(x-delta) )/ (2*delta) More... | |
First derivative estimator of a monodimensional functional.
NB: Works only for real functions. TODO: could it be elegantly generalized other (e.g. complex) functions?
Definition at line 577 of file minTools.h.
typedef TFunctor::argument_type til::DerivativeEstimator< TFunctor >::input_prec |
Definition at line 580 of file minTools.h.
typedef TFunctor::result_type til::DerivativeEstimator< TFunctor >::output_prec |
Definition at line 581 of file minTools.h.
|
inline |
Definition at line 583 of file minTools.h.
|
inline |
Definition at line 594 of file minTools.h.
|
inline |
Estimate gradient at position x by computing ( f(x+delta) - f(x-delta) )/ (2*delta)
Definition at line 598 of file minTools.h.
|
inline |
Definition at line 587 of file minTools.h.