Documentation of 'boofcv.alg.interpolate.array.Interpolate1D_F32' Java class
Interpolate1D_F32
boofcv.alg.interpolate.array

Class Interpolate1D_F32

  • Direct Known Subclasses:
    PolynomialNeville_F32


    public abstract class Interpolate1D_F32
    extends java.lang.Object
    Provides much of the basic house keeping needed for interpolating 1D data. Interpolation is done using sample points y[i] = f(x[i]) where x is a monotonically increasing or decreasing function.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void changeDegree(int degree)
      Changes the number of points used in the interpolation.
      float process(float testX)
      Performs interpolation at the sample point.
      float process(int index0, float testX)
      Performs an interpolation using sample data starting at index0.
      void setInput(float[] x, float[] y, int size)
      Sets the data that is being interpolated.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Interpolate1D_F32

        public Interpolate1D_F32(int degree)
        Parameters:
        degree - The number of points used in the interpolation minus one
      • Interpolate1D_F32

        public Interpolate1D_F32(int degree,
                                 float[] x,
                                 float[] y,
                                 int size)
        Parameters:
        degree - The number of points used in the interpolation minus one
        x - Where the points are sample at. Not modifed. Reference saved.
        y - The value at the sample points. Not modifed. Reference saved.
        size - The number of points used.
    • Method Detail

      • setInput

        public void setInput(float[] x,
                             float[] y,
                             int size)
        Sets the data that is being interpolated.
        Parameters:
        x - Where the points are sample at. Not modifed. Reference saved.
        y - The value at the sample points. Not modifed. Reference saved.
        size - The number of points used.
      • process

        public float process(float testX)
        Performs interpolation at the sample point.
        Parameters:
        testX - Where the interpolated value is done at.
        Returns:
        The interpolated value at sampleX.
      • process

        public float process(int index0,
                             float testX)
        Performs an interpolation using sample data starting at index0. Little checking is done and it is assumed the user knows what he is doing. Interpolation is done using points from index0 to index0 + M - 1
        Parameters:
        index0 - first sample point used in the interpolation.
        testX - Where the interpolated value is done at.
        Returns:
        The interpolated value at sampleX.
      • changeDegree

        public void changeDegree(int degree)
        Changes the number of points used in the interpolation.
        Parameters:
        degree - Number of points used minus one.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.