Class min_bkt_base (o2scl)

O2scl : Class List

template<class func_t, class dfunc_t = func_t>
class min_bkt_base : public o2scl::min_base<func_t, func_t>

One-dimensional bracketing minimization [abstract base].

Subclassed by o2scl::min_brent_boost< func_t >, o2scl::min_brent_gsl< func_t >, o2scl::min_cern< func_t >, o2scl::min_quad_golden< func_t >

Public Functions

inline min_bkt_base()
inline virtual ~min_bkt_base()
inline virtual int min(double &x, double &fmin, func_t &func)

Calculate the minimum min of func w.r.t ‘x’.

If this is not overloaded, it attempts to bracket the minimum using bracket() and then calls min_bkt() with the newly bracketed minimum.

virtual int min_bkt(double &x2, double x1, double x3, double &fmin, func_t &func) = 0

Calculate the minimum min of func with x2 bracketed between x1 and x3.

If this is not overloaded, it ignores the bracket and calls min().

inline virtual int min_de(double &x, double &fmin, func_t &func, dfunc_t &df)

Calculate the minimum min of func with derivative dfunc w.r.t ‘x’.

If this is not overloaded, it attempts to bracket the minimum using bracket() and then calls min_bkt_de() with the newly bracketed minimum.

inline virtual const char *type()

Return string denoting type (“min_bkt”)

Public Members

int bracket_iter

The number of iterations for automatically bracketing a minimum (default 20)