📄 vnl_powell.h
字号:
// This is vxl/vnl/algo/vnl_powell.h
#ifndef vnl_powell_h_
#define vnl_powell_h_
#ifdef VCL_NEEDS_PRAGMA_INTERFACE
#pragma interface
#endif
//:
// \file
// \brief Powell minimizer.
// \author awf@robots.ox.ac.uk
// \date 05 Dec 00
#include <vnl/vnl_cost_function.h>
#include <vnl/vnl_nonlinear_minimizer.h>
//: The ever-popular Powell minimizer.
// Derivative-free method which may be faster if your
// function is expensive to compute and many-dimensional.
// Implemented from scratch from NR.
class vnl_powell : public vnl_nonlinear_minimizer
{
public:
//: Initialize a powell with the given cost function
vnl_powell(vnl_cost_function* functor);
//: Run minimization, place result in x.
ReturnCodes minimize(vnl_vector<double>& x);
protected:
vnl_cost_function* functor_;
friend class vnl_powell_1dfun;
void pub_report_eval(double e) {
report_eval(e);
}
};
#endif // vnl_powell_h_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -