Interface UnivariateRealIntegrator

    • Method Detail

      • setMinimalIterationCount

        void setMinimalIterationCount​(int count)
        Set the lower limit for the number of iterations.

        Minimal iteration is needed to avoid false early convergence, e.g. the sample points happen to be zeroes of the function. Users can use the default value or choose one that they see as appropriate.

        A ConvergenceException will be thrown if this number is not met.

        Parameters:
        count - minimum number of iterations
      • getMinimalIterationCount

        int getMinimalIterationCount()
        Get the lower limit for the number of iterations.
        Returns:
        the actual lower limit
      • resetMinimalIterationCount

        void resetMinimalIterationCount()
        Reset the lower limit for the number of iterations to the default.

        The default value is supplied by the implementation.

        See Also:
        setMinimalIterationCount(int)
      • getResult

        double getResult()
                  throws IllegalStateException
        Get the result of the last run of the integrator.
        Returns:
        the last result
        Throws:
        IllegalStateException - if there is no result available, either because no result was yet computed or the last attempt failed