|
Unfit
3.1.1
Data fitting and optimization software
|
Equation1 is defined as x^2 + 2x + 1. More...
#include <LevenbergMarquardtTestFunctions.hpp>
Public Member Functions | |
| std::vector< double > | operator() (const std::vector< double > &variable) |
Public Member Functions inherited from Unfit::GenericCostFunction | |
| virtual | ~GenericCostFunction () |
Equation1 is defined as x^2 + 2x + 1.
Number of dimensions = 1 The global minimum is: 0 at (-1)T Initial guess: (10)
|
inlinevirtual |
We overload the operator as is required in GenericCostFunction to calculate the cost of the function.
Behaviour: cost = x^2 + 2x + 1
Intended use : Equation1 Func; cost = Func(const std::vector<double> variable);
Parameters:
| variable | (input) vector containing coordinates of x |
Implements Unfit::GenericCostFunction.
1.8.13