Class ArrayFunction

    • Constructor Detail

      • ArrayFunction

        public ArrayFunction​(java.util.List funcs,
                             PDFFile srcFile)
    • Method Detail

      • evaluate

        public float[] evaluate​(float[] inputs)
        Description copied from class: PDFFunction
        Evaluate the function. Note that the return value array is reused, so if you need to save the results around for any length of time, you should copy them out.
        Overrides:
        evaluate in class PDFFunction
      • numInputValues

        public int numInputValues()
        Description copied from class: PDFFunction
        Returns the number of parameters this function takes as input
        Overrides:
        numInputValues in class PDFFunction
      • numOutputValues

        public int numOutputValues()
        Description copied from class: PDFFunction
        Returns the number of values this function returns. Should be overridden by subclasses that don't require outputRange.
        Overrides:
        numOutputValues in class PDFFunction