Class NumericalIntegration
java.lang.Object
org.episteme.core.mathematics.analysis.integration.NumericalIntegration
Numerical integration methods.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleadaptiveSimpson(DoubleUnaryOperator f, double a, double b, double tol, int maxDepth) Adaptive Simpson's rule with error control.static doublegaussLegendre(DoubleUnaryOperator f, double a, double b) Gaussian quadrature (Gauss-Legendre, 5 points).static doubleintegrateData(double[] x, double[] y) Integrate tabulated data using trapezoidal rule.static doubleromberg(DoubleUnaryOperator f, double a, double b, int maxLevel) Romberg integration (Richardson extrapolation of trapezoidal).static doublesimpson(DoubleUnaryOperator f, double a, double b, int n) Simpson's rule.static doubletrapezoidal(DoubleUnaryOperator f, double a, double b, int n) Trapezoidal rule.
-
Constructor Details
-
NumericalIntegration
public NumericalIntegration()
-
-
Method Details
-
trapezoidal
Trapezoidal rule. -
simpson
Simpson's rule. -
romberg
Romberg integration (Richardson extrapolation of trapezoidal). -
gaussLegendre
Gaussian quadrature (Gauss-Legendre, 5 points). -
adaptiveSimpson
public static double adaptiveSimpson(DoubleUnaryOperator f, double a, double b, double tol, int maxDepth) Adaptive Simpson's rule with error control. -
integrateData
public static double integrateData(double[] x, double[] y) Integrate tabulated data using trapezoidal rule.
-