|
| Func2dFromScalarFunction (IScalarFunction originalFunction) |
| Constructs a scalar function of 2 variables from the specified scalar function of a vector argument. More...
|
|
override double | Value (double x, double y) |
| Calculates and returns value of the current 2D scalar function. More...
|
|
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. More...
|
|
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. More...
|
|
| Func2dBase () |
|
virtual double | Value (vec2 parameters) |
| Calculates and returns value of the current 2D scalar function. More...
|
|
virtual vec2 | Gradient (vec2 parameters) |
| Calculates and returns gradient of the current 2D scalar function. More...
|
|
virtual 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...
|
|
override double | Value (IVector parameters) |
| Returns the value of the current function at the specified parameters. More...
|
|
override void | GradientPlain (IVector parameters, IVector gradient) |
| Calculates first order derivatives (gradient) of this function at the specified parameters. WARNING: Plain function, does not check consistency of arguments. More...
|
|
override void | HessianPlain (IVector parameters, IMatrix hessian) |
| Calculates the second derivative (Hessian matrix) of this function at the specified parameters. WARNING: Plain function, does not check consistency of arguments. More...
|
|
virtual void | Evaluate (IScalarFunctionResults data) |
| Evaluates whatever needs to be evaluated and stores the results on the specified storage object. More...
|
|
virtual void | Gradient (IVector parameters, ref IVector gradient) |
| Calculates first order derivatives (gradient) of this function at the specified parameters. More...
|
|
virtual void | Hessian (IVector parameters, ref IMatrix hessian) |
| Calculates the second derivative (Hessian matrix) of this function at the specified parameters. More...
|
|
virtual void | NumericalGradientForwardPlain (IVector x, IVector stepSizes, IVector gradient) |
| Calculates numerical derivatives (gradient) of this function. Forward difference formula is normally used. More...
|
|
void | NumericalGradientForward (IVector x, IVector stepSizes, ref IVector gradient) |
| Calculates numerical derivatives (gradient) of this function. Forward difference formula is normally used. More...
|
|
void | NumericalGradientForward (IVector x, double stepSize, ref IVector gradient) |
| Calculates numerical derivatives (gradient) of this function. Forward difference formula is used. More...
|
|
virtual void | NumericalGradientCentralPlain (IVector x, IVector stepSizes, IVector gradient) |
| Calculates numerical derivatives (gradient) of this function. Forward difference formula is normally used. More...
|
|
void | NumericalGradientCentral (IVector x, IVector stepSizes, ref IVector gradient) |
| Calculates numerical derivatives (gradient) of this function. Forward difference formula is normally used. More...
|
|
void | NumericalGradientCentral (IVector x, double stepSize, ref IVector gradient) |
| Calculates numerical derivatives (gradient) of this function. Forward difference formula is normally used. More...
|
|
virtual void | NumericalHessianForwardPlain (IVector x, IVector stepSizes, IVector aux, IMatrix hessian) |
| Calculates numerical second derivatives (Hessian) of this function. Forward difference formula is normally used. WARNING: Dimensions of vector arguments must match. This function does not check for consistency of argument dimensions. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
virtual void | NumericalHessianForward (IVector x, IVector stepSizes, ref IVector aux, ref IMatrix hessian) |
| Calculates numerical second derivatives (Hessian) of this function. Forward difference formula is normally used. REMARK: if auxiliary vector or result matrix don't have correct dimensions or they are not allocated, then allocation is performed first. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
virtual void | NumericalHessianForward (IVector x, double stepSize, ref IVector aux, ref IMatrix hessian) |
| Calculates numerical second derivatives (Hessian) of this function. Forward difference formula is normally used. REMARK: if auxiliary vector or result matrix don't have correct dimensions or they are not allocated, then allocation is performed first. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
virtual void | NumericalHessianCentralPlain (IVector x, IVector stepSizes, IVector aux1, IVector aux2, IMatrix hessian) |
| Calculates numerical second derivatives (Hessian) of this function. Forward difference formula is normally used. WARNING: Dimensions of vector arguments must match. This function does not check for consistency of argument dimensions. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
virtual void | NumericalHessianCentral (IVector x, IVector stepSizes, ref IVector aux1, ref IVector aux2, ref IMatrix hessian) |
| Calculates numerical second derivatives (Hessian) of this function. Forward difference formula is normally used. REMARK: if auxiliary vector or result matrix don't have correct dimensions or they are not allocated, then allocation is performed first. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
virtual void | NumericalHessianCentral (IVector x, double stepSize, ref IVector aux1, ref IVector aux2, ref IMatrix hessian) |
| Calculates numerical second derivatives (Hessian) of this function. Forward difference formula is normally used. REMARK: if auxiliary vector or result matrix don't have correct dimensions or they are not allocated, then allocation is performed first. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
virtual void | NumericalHessianCentralPlain (IVector x, IVector stepSizes, IVector aux1, IVector aux2, IMatrix hessian, bool useAnalyticalGradient) |
| Calculates numerical second derivatives (Hessian) of this function by the central difference formula. WARNING: Dimensions of vector arguments must match. This function does not check for consistency of argument dimensions. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
virtual void | NumericalHessianCentral (IVector x, IVector stepSizes, ref IVector aux1, ref IVector aux2, ref IMatrix hessian, bool useAnalyticalGradient) |
| Calculates numerical second derivatives (Hessian) of this function by the central difference formula. REMARK: if auxiliary vector or result matrix don't have correct dimensions or they are not allocated, then allocation is performed first. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
virtual void | NumericalHessianCentral (IVector x, double stepSize, ref IVector aux1, ref IVector aux2, ref IMatrix hessian, bool useAnalyticalGradient) |
| Calculates numerical second derivatives (Hessian) of this function. Forward difference formula is normally used. REMARK: if auxiliary vector or result matrix don't have correct dimensions or they are not allocated, then allocation is performed first. REMARK: Vector x is changed during operation, but is set to initial value before function returns (unless an exception is thrown). More...
|
|
void | TestSpeed (IVector parameters, int numEvaluations, bool randomPerturbations, double relativePerturbationSize, bool calcValue, bool calcGradient, bool calcHessian, bool writeLastResult) |
| Tests speed of evaluation of the current scalar function and writes results to the console. More...
|
|
void | TestGradient (IVector parameters, IVector stepSizes, int stepReductionFactor, int numStepReductions, bool checkNumerical, bool writeErrorComponents, bool writeGradientComponents) |
| Tests the calculation of gradients of the current scalar function. More...
|
|
void | TestGradient (IVector parameters, IVector stepSizes, int stepReductionFactor, int numStepReductions, bool checkNumerical, bool writeErrorComponents, bool writeGradientComponents, bool useCentralDifference) |
| Tests the calculation of gradients of the current scalar function. More...
|
|
void | TestHessian (IVector parameters, IVector stepSizes, int stepReductionFactor, int numStepReductions, bool checkNumerical, bool writeErrorComponents, bool writeHessianComponents) |
| Tests the calculation of Hessians of the current scalar function. More...
|
|
void | TestHessian (IVector parameters, IVector stepSizes, int stepReductionFactor, int numStepReductions, bool checkNumerical, bool writeErrorComponents, bool writeHessianComponents, bool useCentralDifference) |
| Tests the calculation of Hessians of the current scalar function. More...
|
|
void | Test (IVector from, IVector to, int numProbes, IVector stepSizes, double tolerance, bool testDerivatives, bool testSecondDerivatives, bool printDifferences, bool printResults) |
| Performs numerical tests on the function, with output written to the console. Derivatives and second derivatives are tested and compared to numerical derivatives. More...
|
|
void | Test (IVector from, IVector to, int numProbes, IVector stepSizes, double tolerance) |
| Performs numerical tests on the function, with output written to the console. Derivatives and second derivatives are tested and compared to numerical derivatives. This method tests first and second order derivatives, prints differences between analytical and numerical values to the console, and prints reports where absolute differences exceed rolerance. More...
|
|
void | Test (IVector from, IVector to, int numProbes, double stepSize, double tolerance, bool testDerivatives, bool testSecondDerivatives, bool printDifferences, bool printResults) |
| Performs numerical tests on the function, with output written to the console. Derivatives and second derivatives are tested and compared to numerical derivatives. More...
|
|
void | Test (IVector from, IVector to, int numProbes, double stepSize, double tolerance) |
| Performs numerical tests on the function, with output written to the console. Derivatives and second derivatives are tested and compared to numerical derivatives. More...
|
|