Interface Function

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    ArcTangent, Gaussian, HyperbolicTangent, Identity, Sigmoid, Sign, Sinc, SymmetricSign

    public interface Function
    extends java.io.Serializable
    Interface for real functions F(x): R -> R. If the function has a derivate, the method getDerivate() MUST be implemented and return a new object to handle this derivate.
    • Method Detail

      • eval

        double eval​(double x)
        Function to evaluate.
        Parameters:
        x - the input value
        Returns:
        f(x)
      • getDerivate

        Function getDerivate()
        Evaluate the first derivate of this function f'(x)
        Returns:
        a new Function object with the derivate function.