Class Integrator1D<T,​U>

    • Constructor Detail

      • Integrator1D

        public Integrator1D()
    • Method Detail

      • integrate

        public T integrate​(Function<U,​T> f,
                           U[] lower,
                           U[] upper)
        Specified by:
        integrate in interface Integrator<T,​U,​Function<U,​T>>
        Parameters:
        f - The function to be integrated, not null
        lower - The array of lower bounds of integration, not null or empty
        upper - The array of upper bounds of integration, not null or empty
        Returns:
        The result of the integral
      • integrate

        public abstract T integrate​(Function<U,​T> f,
                                    U lower,
                                    U upper)
        1-D integration method.
        Parameters:
        f - The function to integrate, not null
        lower - The lower bound, not null
        upper - The upper bound, not null
        Returns:
        The result of the integration