TooN 2.1
|
Turn a multidimensional function in to a 1D function by specifying a point and direction. More...
#include <conjugate_gradient.h>
Public Member Functions | |
LineSearch (const Vector< Size, Precision > &s, const Vector< Size, Precision > &d, const Func &func) | |
Precision | operator() (Precision x) const |
Public Attributes | |
const Vector< Size, Precision > & | start |
const Vector< Size, Precision > & | direction |
const Func & | f |
Turn a multidimensional function in to a 1D function by specifying a point and direction.
A nre function is defined:
LineSearch | ( | const Vector< Size, Precision > & | s, |
const Vector< Size, Precision > & | d, | ||
const Func & | func | ||
) |
Set up the line search class.
s | Start point, . |
d | direction, . |
func | Function, . |
Precision operator() | ( | Precision | x | ) | const |
x | Position to evaluate function |
References LineSearch< Size, Precision, Func >::direction, LineSearch< Size, Precision, Func >::f, and LineSearch< Size, Precision, Func >::start.