Class PolynomialInterpolation
java.lang.Object
org.episteme.core.mathematics.analysis.interpolation.PolynomialInterpolation
Polynomial interpolation methods.
Given points (xâ‚€,yâ‚€), (xâ‚Â,yâ‚Â), ..., (xâ‚™,yâ‚™), find polynomial P(x) such that P(xáµ¢) = yáµ¢.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PolynomialInterpolation
public PolynomialInterpolation()
-
-
Method Details
-
lagrange
Lagrange interpolation polynomial.Constructs polynomial of degree ≤ n passing through n+1 points. Time complexity: O(n²) for evaluation.
- Parameters:
xPoints- x-coordinatesyPoints- y-coordinates (must have same length as xPoints)- Returns:
- function that evaluates the interpolating polynomial
-
newton
Newton divided differences interpolation.More efficient than Lagrange for adding new points incrementally. Uses divided differences table.
- Parameters:
xPoints- x-coordinatesyPoints- y-coordinates- Returns:
- function that evaluates the interpolating polynomial
-
linearInterpolate
-
cubicSpline
-