Class PolynomialNeville_F32

java.lang.Object
boofcv.alg.interpolate.array.Interpolate1D_F32
boofcv.alg.interpolate.array.PolynomialNeville_F32

public class PolynomialNeville_F32
extends Interpolate1D_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.

  • 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 class Interpolate1D_F32
      Parameters:
      sample - Where the interpolated value is done at.
      Returns:
      The interpolated value at sampleX.