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

#include <LevenbergMarquardtTestFunctions.hpp>

Inheritance diagram for Unfit::Examples::ParabolaWithHole:
Unfit::GenericCostFunction

Public Member Functions

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

Detailed Description

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.

Member Function Documentation

◆ operator()()

std::vector<double> Unfit::Examples::ParabolaWithHole::operator() ( const std::vector< double > &  variable)
inlinevirtual

We overload the operator as is required in GenericCostFunction to calculate the cost of the function.

Parameters
variablethe current estimate of x
Returns
a vector of residuals (length one in this case)

Implements Unfit::GenericCostFunction.


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