Componentwise interpolation preserving the first PCHIP interval and constructing a C2 clamped cubic on the remaining stations. Tail endpoint derivatives come from the same PCHIP seed; with fewer than four stations all seed intervals remain unchanged. Coordinates and values use consistent caller-owned units.
Per-interval descending cubic coefficients in the supplied ordinate units.
Readonlyx
x:readonlynumber[]
Ordered coordinates including the first interval retained as derivative support.
Methods
at
at(value:number,derivative?:boolean):number[]
Evaluate the value or derivative per coordinate unit; outside queries extrapolate the first or last polynomial and interior knots select the right interval.
Componentwise interpolation preserving the first PCHIP interval and constructing a C2 clamped cubic on the remaining stations. Tail endpoint derivatives come from the same PCHIP seed; with fewer than four stations all seed intervals remain unchanged. Coordinates and values use consistent caller-owned units.