Unfit  3.1.1
Data fitting and optimization software
Public Member Functions | List of all members
Unfit::Examples::HelicalValley Class Reference

Implements the Helical Valley function. More...

#include <HelicalValley.hpp>

Inheritance diagram for Unfit::Examples::HelicalValley:
Unfit::GenericCostFunction

Public Member Functions

std::vector< double > operator() (const std::vector< double > &param)
 
- Public Member Functions inherited from Unfit::GenericCostFunction
virtual ~GenericCostFunction ()
 

Detailed Description

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].

Member Function Documentation

◆ operator()()

std::vector<double> Unfit::Examples::HelicalValley::operator() ( const std::vector< double > &  param)
inlinevirtual

Calculate the residuals for the Helical Valley function.

Intended use : residuals = cost_func(param)

Parameters
paramA vector containing the current estimates of the parameters
Returns
A vector containing the residuals

Implements Unfit::GenericCostFunction.


The documentation for this class was generated from the following file: