All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xxl.mathematica.analysis.IntegrationMethod Maven / Gradle / Ivy

package xxl.mathematica.analysis;

import org.apache.commons.math3.analysis.integration.*;

/**
 * 积分方法
 */
public enum IntegrationMethod {

    IterativeLegendreGauss(new IterativeLegendreGaussIntegrator(2,
            BaseAbstractUnivariateIntegrator.DEFAULT_MIN_ITERATIONS_COUNT,
            BaseAbstractUnivariateIntegrator.DEFAULT_MAX_ITERATIONS_COUNT)),
    MidPoint(new MidPointIntegrator()),
    Romberg(new RombergIntegrator()),
    Simpson(new SimpsonIntegrator()),
    Trapezoid(new TrapezoidIntegrator());

    private final UnivariateIntegrator integrator;

    IntegrationMethod(UnivariateIntegrator integrator) {
        this.integrator = integrator;
    }

    public UnivariateIntegrator getIntegrator() {
        return integrator;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy