PchipInterpolation<T>

Models & Types · AiDotNet.Interpolation

Implements Piecewise Cubic Hermite Interpolating Polynomial (PCHIP) interpolation.

Implements: IInterpolation<T>

For Beginners

PCHIP is a method that creates a smooth curve through your data points. Unlike some other methods, it avoids creating artificial “wiggles” in the curve, making it particularly useful for scientific data where you want to maintain the general shape and trends of your original data.

How It Works

PCHIP interpolation creates a smooth curve that passes through all data points while preserving the shape of the data, particularly maintaining monotonicity (keeping the same direction of increase or decrease between points).

Constructors

Constructor Summary
PchipInterpolation(Vector<T> x, Vector<T> y) Initializes a new instance of the PCHIP interpolation with the specified data points.

Methods

Method Summary
T Interpolate(T x) Interpolates a y-value for the given x-value using PCHIP interpolation.