Class InterpolatingPolynomialEstimator
java.lang.Object
com.irurueta.numerical.interpolation.InterpolatingPolynomialEstimator
- Direct Known Subclasses:
AccurateInterpolatingPolynomialEstimator,SimpleInterpolatingPolynomialEstimator
Base class for interpolating polynomial estimators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionestimate(double[] x, double[] y) Estimates polynomial from provided x and y points.abstract voidestimate(double[] x, double[] y, double[] cof) Estimates polynomial coefficients from provided x and y points.voidestimate(double[] x, double[] y, Polynomial result) Estimates polynomial from provided x and y points.double[]estimateCoefficients(double[] x, double[] y) Estimates polynomial coefficients from provided x and y points.
-
Constructor Details
-
InterpolatingPolynomialEstimator
public InterpolatingPolynomialEstimator()
-
-
Method Details
-
estimate
Estimates polynomial from provided x and y points.- Parameters:
x- x points the estimated polynomial passes through.y- y points the estimated polynomial passes through.- Returns:
- estimated polynomial.
- Throws:
IllegalArgumentException- if any of the provided values doesn't have the same length.InterpolationException- if interpolation fails for numerical reasons.
-
estimateCoefficients
Estimates polynomial coefficients from provided x and y points.- Parameters:
x- x points the estimated polynomial passes through.y- y points the estimated polynomial passes through.- Returns:
- coefficients of estimated polynomial.
- Throws:
IllegalArgumentException- if any of the provided values doesn't have the same length.InterpolationException- if interpolation fails for numerical reasons.
-
estimate
Estimates polynomial from provided x and y points.- Parameters:
x- x points the estimated polynomial passes through.y- y points the estimated polynomial passes through.result- instance where estimated polynomial will be stored.- Throws:
IllegalArgumentException- if any of the provided values doesn't have the same length or polynomial doesn't have expected order.InterpolationException- if interpolation fails for numerical reasons.
-
estimate
Estimates polynomial coefficients from provided x and y points.- Parameters:
x- x points the estimated polynomial passes through.y- y points the estimated polynomial passes through.cof- instance where coefficients of estimated polynomial will be stored.- Throws:
IllegalArgumentException- if any of the provided values doesn't have the same length.InterpolationException- if interpolation fails for numerical reasons.
-