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

#include <TestFunctions.hpp>

Inheritance diagram for Unfit::UnitTests::LastInfCostFunction:
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 acts like the SimpleCostFunction but inserts a inf in the last element. 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::LastInfCostFunction::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: