|
Unfit
3.1.1
Data fitting and optimization software
|
#include <NelderMeadTestFunctions.hpp>
Public Member Functions | |
| std::vector< double > | operator() (const std::vector< double > &x) |
Public Member Functions inherited from Unfit::GenericCostFunction | |
| virtual | ~GenericCostFunction () |
This function is used to unit-test the case of expansion to infinity It returns infinity when x is in between -1 and 1.
|
inlinevirtual |
We overload the operator as is required in GenericCostFunction to calculate the cost of the function.
Behaviour: cost = x if x > 1 and x < -1, infinity otherwise
Intended use : InfinityInBetween Func; cost = Func(const std::vector<double> x);
NOTE sicne this function actually retrns x, from th Nelder-Mead persepctive it behaves like a parabola, since NM squares the cost
Parameters:
| x | (input) vector containing coordinates of x (1D) |
Implements Unfit::GenericCostFunction.
1.8.13