boofcv.alg.interpolate.array
Class Interpolate1D_F32
- java.lang.Object
-
- boofcv.alg.interpolate.array.Interpolate1D_F32
-
- Direct Known Subclasses:
- PolynomialNeville_F32
public abstract class Interpolate1D_F32 extends java.lang.ObjectProvides 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.
-
-
Constructor Summary
Constructors Constructor and Description Interpolate1D_F32(int degree)Interpolate1D_F32(int degree, float[] x, float[] y, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidchangeDegree(int degree)Changes the number of points used in the interpolation.floatprocess(float testX)Performs interpolation at the sample point.floatprocess(int index0, float testX)Performs an interpolation using sample data starting at index0.voidsetInput(float[] x, float[] y, int size)Sets the data that is being interpolated.
-
-
-
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 onex- 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