CubicConvolutionInterpolation<T>
Models & Types · AiDotNet.Interpolation
Implements cubic convolution interpolation for 2D data points.
Implements: I2DInterpolation<T>
How It Works
Cubic convolution interpolation creates smooth surfaces from a grid of data points. It uses 16 neighboring points (a 4x4 grid) to calculate each interpolated value, resulting in a continuous surface with smooth first derivatives.
For Beginners: This class helps you estimate values between known data points on a 2D grid. Imagine having temperature readings at specific locations on a map, and you want to estimate the temperature at locations between your measurement points. This interpolation creates a smooth surface that passes through all your known points and provides reasonable estimates for the points in between.
Constructors
| Constructor | Summary |
|---|---|
CubicConvolutionInterpolation(Vector<T> x, Vector<T> y, Matrix<T> z) |
Creates a new cubic convolution interpolation from the given 2D data points. |
Methods
| Method | Summary |
|---|---|
T Interpolate(T x, T y) |
Calculates the interpolated z-value for a given (x,y) point using cubic convolution. |