Package com.irurueta.numerical
Class SymmetricDerivativeEstimator
java.lang.Object
com.irurueta.numerical.DerivativeEstimator
com.irurueta.numerical.SymmetricDerivativeEstimator
Class to estimate the derivative of a single dimension function at a given
point.
The algorithm used in this implementation is valid for continuous functions
only, otherwise inaccurate results might be obtained.
This implementation is more accurate although slower than
DerivativeEstimator.
-
Field Summary
Fields inherited from class com.irurueta.numerical.DerivativeEstimator
EPS, listener
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptiondouble
derivative
(double x) Computes the function derivative at provided point x.
-
Constructor Details
-
SymmetricDerivativeEstimator
Constructor.- Parameters:
listener
- listener to evaluate a single dimension function.
-
-
Method Details
-
derivative
Computes the function derivative at provided point x.- Overrides:
derivative
in classDerivativeEstimator
- Parameters:
x
- Point where derivative is estimated.- Returns:
- Derivative of function at provided point.
- Throws:
EvaluationException
- Raised if function cannot be properly evaluated.
-