API documentation of the 'jhplot.math.exp4j.function.Function' Java class
Function
jhplot.math.exp4j.function

Class Function

Function
jhplot.math.exp4j.function

Class Function



  • public abstract class Functionextends Object
    A class representing a Function which can be used in an expression
    • Constructor Detail

      • Function

        public Function(String name,                int numArguments)
        Create a new Function with a given name and number of arguments
        Parameters:
        name - the name of the Function
        numArguments - the number of arguments the function takes
      • Function

        public Function(String name)
        Create a new Function with a given name that takes a single argument
        Parameters:
        name - the name of the Function
    • Method Detail

      • getName

        public String getName()
        Get the name of the Function
        Returns:
        the name
      • getNumArguments

        public int getNumArguments()
        Get the number of arguments for this function
        Returns:
        the number of arguments
      • apply

        public abstract double apply(double... args)
        Method that does the actual calculation of the function value given the arguments
        Parameters:
        args - the set of arguments used for calculating the function
        Returns:
        the result of the function evaluation
      • getAllowedFunctionCharacters

        public static char[] getAllowedFunctionCharacters()
        Deprecated. since 0.4.5 All unicode letters are allowed to be used in function names since 0.4.3. This API Function can be safely ignored. Checks for function name validity can be done using Character.isLetter() et al.
        Get the set of characters which are allowed for use in Function names.
        Returns:
        the set of characters allowed
      • isValidFunctionName

        public static boolean isValidFunctionName(String name)

DMelt 2.0 © DataMelt by jWork.ORG