eLynx SDK
v3.0.1 C++ image processing API reference |
#include <IFunctionNL.h>
Public Member Functions | |
virtual | ~IFunctionNL () |
Default virtual destructor implementation. | |
virtual uint32 | GetVariablesCount () const =0 |
virtual uint32 | GetParametersCount () const =0 |
virtual double | Evaluate (const IVector &iVars, const IVector &iParams) const =0 |
virtual double | EvalDerivativeByParam (const IVector &iVars, const IVector &iParams, uint32 iByParam) const =0 |
Definition at line 38 of file IFunctionNL.h.
virtual eLynx::Math::IFunctionNL::~IFunctionNL | ( | ) | [inline, virtual] |
virtual uint32 eLynx::Math::IFunctionNL::GetVariablesCount | ( | ) | const [pure virtual] |
Returns the number of function idependent variables (x, y, ...)
Implemented in eLynx::Math::BellCurve, and eLynx::Math::BellSurface.
virtual uint32 eLynx::Math::IFunctionNL::GetParametersCount | ( | ) | const [pure virtual] |
Returns the number of function parameters or coefficients. Optimal values of these parameters are computed in the process of non-linear function fitting.
Implemented in eLynx::Math::BellCurve, and eLynx::Math::BellSurface.
virtual double eLynx::Math::IFunctionNL::Evaluate | ( | const IVector & | iVars, | |
const IVector & | iParams | |||
) | const [pure virtual] |
Evaluates the function value for given values of variables and parameters. Both values and parameters are given as vectors. The sizes of vectors must match the function specification.
iVars | the vector of independent variables values | |
iParams | the vector of function parameters values |
Implemented in eLynx::Math::BellCurve, and eLynx::Math::BellSurface.
virtual double eLynx::Math::IFunctionNL::EvalDerivativeByParam | ( | const IVector & | iVars, | |
const IVector & | iParams, | |||
uint32 | iByParam | |||
) | const [pure virtual] |
Evaluates the function derivative by given parameter. Both variable values and actual parameter values are given as vectors. The sizes of vectors must match the function specification. For example, for function y=e^(a*x)+b, the derivative by parameter a is y=x*e^(a*x), while derivative by parameter b is y = 1.
iVars | the vector of independent variables values | |
iParams | the vector of function parameters values | |
iByParam | the index of the parameter to compute derivative by |
Implemented in eLynx::Math::BellCurve, and eLynx::Math::BellSurface.