Class RombergIntegrator1D

    • Constructor Detail

      • RombergIntegrator1D

        public RombergIntegrator1D()
    • Method Detail

      • integrate

        public Double integrate​(Function<Double,​Double> f,
                                Double lower,
                                Double upper)
        Romberg integration method. Note that the Commons implementation fails if the lower bound is larger than the upper - in this case, the bounds are reversed and the result negated.
        Specified by:
        integrate in class Integrator1D<Double,​Double>
        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