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

#include <TestFunctions.hpp>

Inheritance diagram for Unfit::UnitTests::ReverseTableTopCostFunction:
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

This function returns a residual of 1.0 if the coordinate lies outside 0 and 1 (inclusive), and returns infinitiy otherwise. The last entry is not included in what is returned as that is used to store the cost.

Member Function Documentation

◆ operator()()

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

Calculate and return the cost of this function given the parameter estimates.

Parameters
xA vector containing the parameter estimates
Returns
The residuals are the same as the supplied vector

Implements Unfit::GenericCostFunction.


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