Package com.irurueta.numerical
Class DerivativeEstimator
java.lang.Object
com.irurueta.numerical.DerivativeEstimator
- Direct Known Subclasses:
SavitzkyGolayDerivativeEstimator
,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 faster although less accurate than
SymmetricDerivativeEstimator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
Constant defining machine precision for this algorithm.protected final SingleDimensionFunctionEvaluatorListener
Listener to evaluate a single dimension function. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor -
Method Summary
Modifier and TypeMethodDescriptiondouble
derivative
(double x) Computes the function derivative at provided point x.
-
Field Details
-
EPS
public static final double EPSConstant defining machine precision for this algorithm.- See Also:
-
listener
Listener to evaluate a single dimension function.
-
-
Constructor Details
-
DerivativeEstimator
Constructor- Parameters:
listener
- listener to evaluate a single dimension function
-
-
Method Details
-
derivative
Computes the function derivative at provided point x.- Parameters:
x
- Point where derivative is estimated- Returns:
- Derivative of function at provided point
- Throws:
EvaluationException
- Raised if function cannot be properly evaluated
-