KochanekBartelsSplineInterpolation<T>
Models & Types · AiDotNet.Interpolation
Implements Kochanek-Bartels spline interpolation for one-dimensional data points.
Implements: IInterpolation<T>
How It Works
Kochanek-Bartels splines (also known as TCB splines) provide control over the shape of the curve through three parameters: tension, continuity, and bias. This allows for more flexible and customizable interpolation compared to simpler methods.
For Beginners: This interpolation method creates smooth curves between data points with special controls that let you adjust how the curve looks. Imagine drawing a line through dots on a graph, but being able to control how “tight” the curve is, how smoothly it transitions between segments, and whether it tends to overshoot or undershoot. This is particularly useful for animation paths or when you need precise control over the shape of a curve.
Constructors
| Constructor | Summary |
|---|---|
KochanekBartelsSplineInterpolation(Vector<T> x, Vector<T> y, double tension, double bias, double continuity) |
Creates a new Kochanek-Bartels spline interpolation from the given data points and parameters. |
Methods
| Method | Summary |
|---|---|
T Interpolate(T x) |
Calculates the interpolated y-value for a given x-value using Kochanek-Bartels spline interpolation. |