Class SymmetricDerivativeEstimator

java.lang.Object
com.irurueta.numerical.DerivativeEstimator
com.irurueta.numerical.SymmetricDerivativeEstimator

public class SymmetricDerivativeEstimator extends DerivativeEstimator
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.
  • Constructor Details

    • SymmetricDerivativeEstimator

      public SymmetricDerivativeEstimator(SingleDimensionFunctionEvaluatorListener listener)
      Constructor.
      Parameters:
      listener - listener to evaluate a single dimension function.
  • Method Details

    • derivative

      public double derivative(double x) throws EvaluationException
      Computes the function derivative at provided point x.
      Overrides:
      derivative in class DerivativeEstimator
      Parameters:
      x - Point where derivative is estimated.
      Returns:
      Derivative of function at provided point.
      Throws:
      EvaluationException - Raised if function cannot be properly evaluated.