MovingLeastSquaresInterpolation<T>
Models & Types · AiDotNet.Interpolation
Implements Moving Least Squares interpolation for two-dimensional data points.
Implements: I2DInterpolation<T>
How It Works
Moving Least Squares (MLS) is a method for smoothly interpolating scattered data points in two dimensions. It creates a continuous surface that passes through or near the original data points.
For Beginners: Imagine you have several points with known heights (like mountains on a map), and you want to estimate the height at any location between these points. Moving Least Squares creates a smooth surface that respects your known points while providing reasonable estimates for all the areas in between. It’s like creating a smooth terrain from a set of elevation measurements.
Unlike simpler methods, MLS adapts to the local density and arrangement of your data points, giving more weight to nearby points when estimating a value at a specific location.
Constructors
| Constructor | Summary |
|---|---|
MovingLeastSquaresInterpolation(Vector<T> x, Vector<T> y, Vector<T> z, double smoothingLength, int polynomialDegree, IMatrixDecomposition<T> decomposition) |
Creates a new instance of the Moving Least Squares interpolation algorithm. |
Methods
| Method | Summary |
|---|---|
T Interpolate(T x, T y) |
Interpolates the z-value at a given (x,y) coordinate using Moving Least Squares. |