|
Unfit
3.1.1
Data fitting and optimization software
|
Implements the Helical Valley function. More...
#include <HelicalValley.hpp>
Public Member Functions | |
| std::vector< double > | operator() (const std::vector< double > ¶m) |
Public Member Functions inherited from Unfit::GenericCostFunction | |
| virtual | ~GenericCostFunction () |
Implements the Helical Valley function.
Here the goal is to find a parameter set that minimises the Helical Valley function. This function is defined as:
100{[z-10phi(x,y)]^2 + (sqrt(x^2+y^2) -1)^2} + z^2 phi = arctan (y/x)/(2*PI) for x>0
The goal is to find the values of x, y & z that give a minimum cost. In terms of the model, x = param[0], y = param[1] and z = param[2].
|
inlinevirtual |
Calculate the residuals for the Helical Valley function.
Intended use : residuals = cost_func(param)
| param | A vector containing the current estimates of the parameters |
Implements Unfit::GenericCostFunction.
1.8.13