org.ddogleg.optimization.impl
Class NumericalDerivativeFB
- java.lang.Object
-
- org.ddogleg.optimization.impl.NumericalDerivativeFB
-
- All Implemented Interfaces:
- FunctionStoS
public class NumericalDerivativeFB extends java.lang.Object implements FunctionStoS
Finite difference numerical derivative calculation using the forward+backwards equation. Difference equation, f'(x) = (f(x+h)-f(x-h))/(2*h). Scaling is taken in account by h based upon the magnitude of the elements in variable x.NOTE: If multiple input parameters are modified by the function when a single one is changed numerical derivatives aren't reliable.
-
-
Constructor Summary
Constructors Constructor and Description NumericalDerivativeFB(FunctionStoS function)NumericalDerivativeFB(FunctionStoS function, double differenceScale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleprocess(double x)Processes the input to compute an output.
-
-
-
Constructor Detail
-
NumericalDerivativeFB
public NumericalDerivativeFB(FunctionStoS function, double differenceScale)
-
NumericalDerivativeFB
public NumericalDerivativeFB(FunctionStoS function)
-
-
Method Detail
-
process
public double process(double x)
Description copied from interface:FunctionStoSProcesses the input to compute an output.- Specified by:
processin interfaceFunctionStoS- Parameters:
x- input parameter- Returns:
- output value
-
-
DataMelt 3.0 © DataMelt by jWork.ORG