3 #ifndef MYGSL_ONE_DIMENSIONAL_MINIMIZATION_H 4 #define MYGSL_ONE_DIMENSIONAL_MINIMIZATION_H 1 17 #include <gsl/gsl_min.h> 38 virtual void action (
int status_,
53 virtual void action (
int status_,
89 const std::string & method_ =
"");
92 const std::string & method_ =
"");
111 static double g_function (
double x_,
void * params_);
118 const std::string & method_ =
"");
127 const gsl_min_fminimizer_type * _fminimizer_type_;
128 gsl_min_fminimizer * _fminimizer_;
130 gsl_function _function_;
145 #endif // MYGSL_ONE_DIMENSIONAL_MINIMIZATION_H virtual void action(int status_, size_t iter_, double a_, double b_, double c_)
void operator()(int status_, size_t iter_, double a_, double b_, double c_)
static double g_function(double x_, void *params_)
void set_step_action(at_step_action &action_)
A data structure representing a numeric value and its associated error.
Definition: best_value.h:17
static const std::string & brent_method_label()
void init(const i_unary_function &functor_, const std::string &method_="")
double get_epsabs() const
Definition: one_dimensional_minimization.h:34
virtual void action(int status_, size_t iter_, double a_, double b_, double c_)=0
One dimensional minimization algorithm.
Definition: one_dimensional_minimization.h:26
const best_value & get_minimum_value() const
void set_debug(bool debug_=true)
int minimize(double a_, double b_, double m_, double epsabs_)
static double default_epsabs()
void set_default_step_action()
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
virtual ~one_dimensional_minimization()
std::string get_name() const
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
Definition: one_dimensional_minimization.h:51
static const std::string & goldensection_method_label()
bool is_converged() const
size_t get_max_iter() const
void initialize(const i_unary_function &functor_, const std::string &method_="")
void _at_step_hook(int status_, size_t iter_, double a_, double b_, double c_)
one_dimensional_minimization(bool debug_=false)
static const size_t DEFAULT_MAX_ITER
Definition: one_dimensional_minimization.h:32