IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Num.IFunc2d Interface Reference

Represents scalar functions of 2 variables. More...

+ Inheritance diagram for IG.Num.IFunc2d:

Public Member Functions

double Value (double x, double y)
 Calculates and returns value of the current 2D scalar function. More...
 
double Value (vec2 parameters)
 Calculates and returns value of the current 2D scalar function. More...
 
void Gradient (double x, double y, out double gradx, out double grady)
 Calculates gradient of the current 2D scalar function and returns its components through the specified output variables. More...
 
vec2 Gradient (vec2 parameters)
 Calculates and returns gradient of the current 2D scalar function. More...
 
void Hessian (double x, double y, out double dxx, out double dyy, out double dxy)
 Calculates Hessian of the current 2D scalar function and returns its component through the specified output variables. More...
 
mat2 Hessian (vec2 parameters)
 Calculates and returns Hessian of the current 2D scalar function and returns it (in the form of a mat2 struct). More...
 

Properties

bool ValueDefined [get]
 Whether calculation of function value is defined. More...
 
bool GradientDefined [get]
 Whether calculation of function ngradient is defined. More...
 
bool HessianDefined [get]
 Whether calculation of function Hessian is defined. More...
 

Detailed Description

Represents scalar functions of 2 variables.

$A Igor Apr09;

Member Function Documentation

double IG.Num.IFunc2d.Value ( vec2  parameters)

Calculates and returns value of the current 2D scalar function.

Parameters
parametersVector of function parameters (in form of the Value) struct.
Returns
Function value.

Implemented in IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func2dQuadratic, IG.Num.Func2dLinear, IG.Num.Func2dVectorFormBase, and IG.Num.Func2dBase.

void IG.Num.IFunc2d.Gradient ( double  x,
double  y,
out double  gradx,
out double  grady 
)
vec2 IG.Num.IFunc2d.Gradient ( vec2  parameters)

Calculates and returns gradient of the current 2D scalar function.

Parameters
parametersVector of parameters (in form of the vec2 struct)

<returnreturns>Gradient of the current 2D scalar function (in form of the vec2 struct)</returnreturns>

Implemented in IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func2dQuadratic, IG.Num.Func2dLinear, IG.Num.Func2dVectorFormBase, and IG.Num.Func2dBase.

void IG.Num.IFunc2d.Hessian ( double  x,
double  y,
out double  dxx,
out double  dyy,
out double  dxy 
)

Calculates Hessian of the current 2D scalar function and returns its component through the specified output variables.

Parameters
xFirst parameter.
ySecond parameter.
dxxComponent 1-1 of the calculated Hessian.
dyyComponent 2-2 of the calculated Hessian.
dxyComponent 1-2 of the calculated Hessian.

Implemented in IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func3d2dBase.ComponentFunction3, IG.Num.Func3d2dBase.ComponentFunction2, IG.Num.Func3d2dBase.ComponentFunction1, IG.Num.Func2dVectorFormBase, IG.Num.Func2dBase, IG.Num.Func2dBaseNoGradient, IG.Num.Func2dBaseNoHessian, IG.Num.Func2dFromScalarFunction, and IG.Neural.Func2dFromApproximator.

mat2 IG.Num.IFunc2d.Hessian ( vec2  parameters)

Calculates and returns Hessian of the current 2D scalar function and returns it (in the form of a mat2 struct).

Implemented in IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func2dQuadratic, IG.Num.Func2dLinear, IG.Num.Func2dVectorFormBase, and IG.Num.Func2dBase.

Property Documentation

bool IG.Num.IFunc2d.ValueDefined
get

Whether calculation of function value is defined.

Referenced by IG.Num.Func2dBase.TestFunction(), and IG.Num.Func3d2dBase.TestFunction().

bool IG.Num.IFunc2d.GradientDefined
get

Whether calculation of function ngradient is defined.

Referenced by IG.Num.Func2dBase.TestFunction(), and IG.Num.Func3d2dBase.TestFunction().

bool IG.Num.IFunc2d.HessianDefined
get

Whether calculation of function Hessian is defined.


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