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

#include <NelderMeadTestFunctions.hpp>

Inheritance diagram for Unfit::UnitTests::Asymptote2D:
Unfit::GenericCostFunction

Public Member Functions

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

Detailed Description

The 2 Dimensional Asymptote function is defined as

-1/(xy+x(x-3))

The function has an asymptote at any (x, y) combination whereby (xy + x(x - 3)) = 0.

Number of dimensions = 2 Example of an asymptote at (0, 0)

Member Function Documentation

◆ operator()()

std::vector<double> Unfit::UnitTests::Asymptote2D::operator() ( const std::vector< double > &  x)
inlinevirtual

We overload the operator as is required in GenericCostFunction to calculate the cost of the 2 Dimensional Asymptote function as defined above.

Behaviour: cost = -1/(xy+x(x-3))

Intended use : Asymptote2D Func; cost = Func(const std::vector<double> x);

Parameters:

Parameters
x(input) vector containing values of the 3 variables
Returns
cost

Implements Unfit::GenericCostFunction.


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