Package boofcv.alg.interpolate.array
Class PolynomialNeville_F32
java.lang.Object
boofcv.alg.interpolate.array.Interpolate1D_F32
boofcv.alg.interpolate.array.PolynomialNeville_F32
Neville's algorithm for polynomial interpolation and extrapolation. Neville's algorithm improves upon Lagrange's formula by avoiding repetitive calculations.
See Numerical Recipes Third Edition page 118.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPolynomialNeville_F32
(int maxDegree) PolynomialNeville_F32
(int maxDegree, float[] x, float[] y, int size) -
Method Summary
Modifier and TypeMethodDescriptionprotected float
compute
(float sample) This is where the specific implementation of the interpolation is done.Methods inherited from class boofcv.alg.interpolate.array.Interpolate1D_F32
bisectionSearch, changeDegree, hunt, process, process, setInput
-
Constructor Details
-
PolynomialNeville_F32
public PolynomialNeville_F32(int maxDegree) -
PolynomialNeville_F32
public PolynomialNeville_F32(int maxDegree, float[] x, float[] y, int size)
-
-
Method Details
-
compute
protected float compute(float sample) Description copied from class:Interpolate1D_F32
This is where the specific implementation of the interpolation is done. It should use points index0 to index0 + M - 1 in its interpolation- Specified by:
compute
in classInterpolate1D_F32
- Parameters:
sample
- Where the interpolated value is done at.- Returns:
- The interpolated value at sampleX.
-