CubicBSplineInterpolation<T>
Models & Types · AiDotNet.Interpolation
Implements cubic B-spline interpolation for smooth curve fitting through data points.
Implements: IInterpolation<T>
How It Works
Cubic B-spline interpolation creates a smooth curve that passes through or near all provided data points. It’s particularly useful for creating natural-looking curves with continuous first and second derivatives.
For Beginners: B-splines are a special type of smooth curve used in computer graphics and data analysis. Unlike simpler interpolation methods, B-splines create exceptionally smooth curves that don’t have sudden changes in direction. Think of them as drawing a smooth line through your points using a flexible ruler that naturally creates gentle curves.
Constructors
| Constructor | Summary |
|---|---|
CubicBSplineInterpolation(Vector<T> x, Vector<T> y, int degree, MatrixDecompositionType decompositionType) |
Creates a new cubic B-spline interpolation from the given data points. |
Methods
| Method | Summary |
|---|---|
T Interpolate(T x) |
Calculates the interpolated y-value for a given x-value using the B-spline curve. |