Interface UnivariateDifferentiableFunction

All Superinterfaces:
UnivariateFunction
All Known Implementing Classes:
Abs, Acos, Acosh, Asin, Asinh, Atan, Atanh, Cbrt, Ceil, Constant, Cos, Cosh, Exp, Expm1, Floor, Gaussian, HarmonicOscillator, Identity, Inverse, Log, Log10, Log1p, Logistic, Logit, Minus, PolynomialFunction, PolynomialFunctionNewtonForm, PolynomialSplineFunction, Power, Rint, Sigmoid, Sin, Sinc, Sinh, SmoothStepFactory.QuadraticSmoothStepFunction, SmoothStepFactory.SmoothStepFunction, Sqrt, Tan, Tanh
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface UnivariateDifferentiableFunction extends UnivariateFunction
Interface for univariate functions derivatives.

This interface represents a simple function which computes both the value and the first derivative of a mathematical function. The derivative is computed with respect to the input variable.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    value(double x)
    Compute the value of the function.
    <T extends Derivative<T>>
    T
    value(T x)
    Compute the value for the function.
  • Method Details

    • value

      <T extends Derivative<T>> T value(T x) throws MathIllegalArgumentException
      Compute the value for the function.
      Type Parameters:
      T - the type of the field elements
      Parameters:
      x - the point for which the function value should be computed
      Returns:
      the value
      Throws:
      MathIllegalArgumentException - if x does not satisfy the function's constraints (argument out of bound, or unsupported derivative order for example)
    • value

      default double value(double x)
      Description copied from interface: UnivariateFunction
      Compute the value of the function.
      Specified by:
      value in interface UnivariateFunction
      Parameters:
      x - Point at which the function value should be computed.
      Returns:
      the value of the function.