Developer documentation
Version 3.0.3-105-gd3941f44
golden_section_search.h File Reference
#include <cmath>
#include "progressbar.h"
#include "memory.h"

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::Math
 

Functions

template<class FunctionType , typename ValueType >
ValueType MR::Math::golden_section_search (FunctionType &function, const std::string &message, ValueType min_bound, ValueType init_estimate, ValueType max_bound, ValueType tolerance=0.01)
 Computes the minimum of a 1D function using a golden section search. More...