Bayeux  3.4.1
Core Foundation library for SuperNEMO
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
mygsl::one_dimensional_minimization Class Reference

One dimensional minimization algorithm. More...

#include <bayeux/mygsl/one_dimensional_minimization.h>

Classes

class  at_step_action
 
struct  default_step_action
 

Public Member Functions

void unset_step_action ()
 
void set_default_step_action ()
 
void set_step_action (at_step_action &action_)
 
const best_valueget_minimum_value () const
 
std::string get_name () const
 
void set_debug (bool debug_=true)
 
bool is_debug () const
 
size_t get_iter () const
 
size_t get_max_iter () const
 
double get_epsabs () const
 
bool is_converged () const
 
 one_dimensional_minimization (bool debug_=false)
 
virtual ~one_dimensional_minimization ()
 
void init (const i_unary_function &functor_, const std::string &method_="")
 
void initialize (const i_unary_function &functor_, const std::string &method_="")
 
void reset ()
 
int minimize (double a_, double b_, double m_, double epsabs_)
 

Static Public Member Functions

static const std::string & goldensection_method_label ()
 
static const std::string & brent_method_label ()
 
static double default_epsabs ()
 
static double g_function (double x_, void *params_)
 
static best_value minimize (const i_unary_function &sys_, double a_, double b_, double m_, double epsabs_, const std::string &method_="")
 

Static Public Attributes

static const size_t DEFAULT_MAX_ITER = 1000
 

Protected Member Functions

void _at_step_hook (int status_, size_t iter_, double a_, double b_, double c_)
 

Detailed Description

One dimensional minimization algorithm.

Constructor & Destructor Documentation

◆ one_dimensional_minimization()

mygsl::one_dimensional_minimization::one_dimensional_minimization ( bool  debug_ = false)

◆ ~one_dimensional_minimization()

virtual mygsl::one_dimensional_minimization::~one_dimensional_minimization ( )
virtual

Member Function Documentation

◆ _at_step_hook()

void mygsl::one_dimensional_minimization::_at_step_hook ( int  status_,
size_t  iter_,
double  a_,
double  b_,
double  c_ 
)
protected

◆ brent_method_label()

static const std::string& mygsl::one_dimensional_minimization::brent_method_label ( )
static

◆ default_epsabs()

static double mygsl::one_dimensional_minimization::default_epsabs ( )
static

◆ g_function()

static double mygsl::one_dimensional_minimization::g_function ( double  x_,
void *  params_ 
)
static

◆ get_epsabs()

double mygsl::one_dimensional_minimization::get_epsabs ( ) const

◆ get_iter()

size_t mygsl::one_dimensional_minimization::get_iter ( ) const

◆ get_max_iter()

size_t mygsl::one_dimensional_minimization::get_max_iter ( ) const

◆ get_minimum_value()

const best_value& mygsl::one_dimensional_minimization::get_minimum_value ( ) const

◆ get_name()

std::string mygsl::one_dimensional_minimization::get_name ( ) const

◆ goldensection_method_label()

static const std::string& mygsl::one_dimensional_minimization::goldensection_method_label ( )
static

◆ init()

void mygsl::one_dimensional_minimization::init ( const i_unary_function functor_,
const std::string &  method_ = "" 
)

◆ initialize()

void mygsl::one_dimensional_minimization::initialize ( const i_unary_function functor_,
const std::string &  method_ = "" 
)

◆ is_converged()

bool mygsl::one_dimensional_minimization::is_converged ( ) const

◆ is_debug()

bool mygsl::one_dimensional_minimization::is_debug ( ) const

◆ minimize() [1/2]

int mygsl::one_dimensional_minimization::minimize ( double  a_,
double  b_,
double  m_,
double  epsabs_ 
)

◆ minimize() [2/2]

static best_value mygsl::one_dimensional_minimization::minimize ( const i_unary_function sys_,
double  a_,
double  b_,
double  m_,
double  epsabs_,
const std::string &  method_ = "" 
)
static

◆ reset()

void mygsl::one_dimensional_minimization::reset ( )

◆ set_debug()

void mygsl::one_dimensional_minimization::set_debug ( bool  debug_ = true)

◆ set_default_step_action()

void mygsl::one_dimensional_minimization::set_default_step_action ( )

◆ set_step_action()

void mygsl::one_dimensional_minimization::set_step_action ( at_step_action action_)

◆ unset_step_action()

void mygsl::one_dimensional_minimization::unset_step_action ( )

Member Data Documentation

◆ DEFAULT_MAX_ITER

const size_t mygsl::one_dimensional_minimization::DEFAULT_MAX_ITER = 1000
static

The documentation for this class was generated from the following file: