Class min_bkt_base (o2scl)¶
-
template<class
func_t
, classdfunc_t
= func_t>
classo2scl
::
min_bkt_base
: public o2scl::min_base<func_t, func_t>¶ One-dimensional bracketing minimization [abstract base].
Public Functions
-
min_bkt_base
()¶
-
~min_bkt_base
()¶
-
int
min
(double &x, double &fmin, func_t &func)¶ Calculate the minimum
min
offunc
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.
-
int
min_bkt
(double &x2, double x1, double x3, double &fmin, func_t &func) = 0¶ Calculate the minimum
min
offunc
with x2 bracketed between x1 and x3.If this is not overloaded, it ignores the bracket and calls min().
-
int
min_de
(double &x, double &fmin, func_t &func, dfunc_t &df)¶ Calculate the minimum
min
offunc
with derivativedfunc
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.
-
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)
-