|
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 () |
The Sample function 8 is defined as
1/x^2 + 1/y^2
Number of dimensions = 2 Global minimum does not exist Initial guess is thus not required
Reference: nil
|
inlinevirtual |
We overload the operator as is required in GenericCostFunction to calculate the cost of the function.
Behaviour: cost = 1/x^2 + 1/y^2
Intended use : SampleCostFunction8 Func; cost = Func(const std::vector<double> x);
NOTE that the returned cost is the sqare root of the evaluation due to the fact the Nelder Mead class will square the cost.
Parameters:
| x | (input) vector containing coordinates of x and y |
Implements Unfit::GenericCostFunction.
1.8.13