|
Unfit
3.1.1
Data fitting and optimization software
|
#include <LevenbergMarquardtTestFunctions.hpp>
Public Member Functions | |
| std::vector< double > | operator() (const std::vector< double > &variable) |
Public Member Functions inherited from Unfit::GenericCostFunction | |
| virtual | ~GenericCostFunction () |
This test function is a simple parabola, y=x*x, where we want to find x=0. The catch is that this one has a hole filled with NaNs around the solution.
|
inlinevirtual |
We overload the operator as is required in GenericCostFunction to calculate the cost of the function.
| variable | the current estimate of x |
Implements Unfit::GenericCostFunction.
1.8.13