Class UnivariateRealIntegratorImpl

    • Method Detail

      • getResult

        public double getResult()
                         throws java.lang.IllegalStateException
        Access the last computed integral.
        Specified by:
        getResult in interface UnivariateRealIntegrator
        Returns:
        the last computed integral
        Throws:
        java.lang.IllegalStateException - if no integral has been computed
      • setMinimalIterationCount

        public 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.

        Specified by:
        setMinimalIterationCount in interface UnivariateRealIntegrator
        Parameters:
        count - minimum number of iterations