IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Approximator function of 2 variables that is based on a general approximator function of vector argument. More...
Public Member Functions | |
Func2dFromApproximator (INeuralApproximator originalFunction) | |
Constructs a approximator function of 2 variables from the specified approximator function of a vector argument. | |
override double | Value (double x, double y) |
Calculates and returns value of the current 2D scalar function. | |
override 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. | |
override 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. | |
Protected Member Functions | |
Func2dFromApproximator () | |
Properties | |
INeuralApproximator | OriginalFunction [get, set] |
Approximator function of vector argument that is used for evaluation of the current function value, gradient, and Hessian. | |
Private Attributes | |
INeuralApproximator | _originalFunction |
Approximator function of 2 variables that is based on a general approximator function of vector argument.
$A Igor Oct11, Tako78 Nov23;
IG::Neural::Func2dFromApproximator::Func2dFromApproximator | ( | ) | [inline, protected] |
IG::Neural::Func2dFromApproximator::Func2dFromApproximator | ( | INeuralApproximator | originalFunction | ) | [inline] |
Constructs a approximator function of 2 variables from the specified approximator function of a vector argument.
scalarFunction | Original approximator function of vector argument used for evaluation. |
override double IG::Neural::Func2dFromApproximator::Value | ( | double | x, |
double | y | ||
) | [inline] |
Calculates and returns value of the current 2D scalar function.
x | First parameter. |
y | Second parameter. |
z | Third parameter. |
Implements IG::Num::IFunc2d.
override void IG::Neural::Func2dFromApproximator::Gradient | ( | double | x, |
double | y, | ||
out double | gradx, | ||
out double | grady | ||
) | [inline] |
Calculates gradient of the current 2D scalar function and returns its components through the specified output variables.
x | First parameter. |
y | Second parameter. |
gradx | First component of the returned gradient. |
grady | Second component of the returned gradient. |
Implements IG::Num::IFunc2d.
override void IG::Neural::Func2dFromApproximator::Hessian | ( | double | x, |
double | y, | ||
out double | dxx, | ||
out double | dyy, | ||
out double | dxy | ||
) | [inline] |
Calculates Hessian of the current 2D scalar function and returns its component through the specified output variables.
x | First parameter. |
y | Second parameter. |
dxx | Component 1-1 of the calculated Hessian. |
dyy | Component 2-2 of the calculated Hessian. |
dxy | Component 1-2 of the calculated Hessian. |
Implements IG::Num::IFunc2d.
INeuralApproximator IG::Neural::Func2dFromApproximator::OriginalFunction [get, set] |
Approximator function of vector argument that is used for evaluation of the current function value, gradient, and Hessian.