Package smile.math

Interface DifferentiableFunction

All Superinterfaces:
Function, Serializable
All Known Implementing Classes:
Exp, Kurtosis, LogCosh

public interface DifferentiableFunction extends Function
A differentiable function is a function whose derivative exists at each point in its domain.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    g(double x)
    Computes the gradient/derivative at x.
    default double
    g2(double x)
    Compute the second-order derivative at x.

    Methods inherited from interface smile.math.Function

    apply, f, inv
  • Method Details

    • g

      double g(double x)
      Computes the gradient/derivative at x.
      Parameters:
      x - a real number.
      Returns:
      the derivative.
    • g2

      default double g2(double x)
      Compute the second-order derivative at x.
      Parameters:
      x - a real number.
      Returns:
      the second-order derivative.