Documentation of 'jsat.math.Function' Java class
Function
jsat.math

Interface Function

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method and Description
      default double f(double... x)
      Evaluates the given function for the specified input vector.
      default double f(Vec x)
      Evaluates the given function for the specified input vector.
      double f(Vec x, boolean parallel)
      Evaluates the given function for the specified input vector.
      static FunctionVec forwardDifference(Function f)
      Returns a new function that approximates the derivative of the given one via numerical forward difference approximation.
    • Method Detail

      • f

        default double f(double... x)
        Evaluates the given function for the specified input vector.
        Parameters:
        x - the input to the function
        Returns:
        the scalar output of this function
      • f

        default double f(Vec x)
        Evaluates the given function for the specified input vector.
        Parameters:
        x - the input to the function
        Returns:
        the scalar output of this function
      • f

        double f(Vec x,
                 boolean parallel)
        Evaluates the given function for the specified input vector.
        Parameters:
        x - the input to the function
        parallel - true if the function should be evaluated with multiple threads, or false to use a single thread.
        Returns:
        the scalar output of this function
      • forwardDifference

        static FunctionVec forwardDifference(Function f)
        Returns a new function that approximates the derivative of the given one via numerical forward difference approximation.
        Parameters:
        f - the function to approximate the derivative of
        Returns:
        a function that will return an estimate of the derivative

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.