MonotoneCubicInterpolation<T>
Models & Types · AiDotNet.Interpolation
Implements monotone cubic interpolation for one-dimensional data points.
Implements: IInterpolation<T>
How It Works
Monotone cubic interpolation creates a smooth curve through data points while preserving the monotonicity of the data (meaning if your data is increasing, the interpolation will also be increasing, and similarly for decreasing data).
For Beginners: Monotone cubic interpolation is like drawing a smooth curve through points on a graph, but with a special property: if your original data is always going up (or always going down) between certain points, the curve will also always go up (or down) between those points. This avoids unwanted “wiggles” or oscillations that can happen with other smooth interpolation methods. It’s particularly useful when you know your data should never “change direction” between points.
Constructors
| Constructor | Summary |
|---|---|
MonotoneCubicInterpolation(Vector<T> x, Vector<T> y) |
Creates a new instance of the monotone cubic interpolation algorithm. |
Methods
| Method | Summary |
|---|---|
T Interpolate(T x) |
Interpolates the y-value at a given x-coordinate using monotone cubic interpolation. |