Class ScalarSecondOrderDifferentiator

  • All Implemented Interfaces:
    Differentiator<Double,​Double,​Double>

    public class ScalarSecondOrderDifferentiator
    extends Object
    implements Differentiator<Double,​Double,​Double>
    Differentiates a scalar function with respect to its argument using finite difference.

    For a function $y = f(x)$ where $x$ and $y$ are scalars, this class produces a function that returns the second derivative value for each point, i.e., $\frac{d^2 f}{dx^2}$.

    • Constructor Detail

      • ScalarSecondOrderDifferentiator

        public ScalarSecondOrderDifferentiator()
        Creates an instance using the default values.
      • ScalarSecondOrderDifferentiator

        public ScalarSecondOrderDifferentiator​(double eps)
        Creates an instance specifying the step size.
        Parameters:
        eps - the step size