-
Notifications
You must be signed in to change notification settings - Fork 7
BasicInterpolators.Function.createBasicInterpolator
Christian d'Heureuse edited this page Sep 25, 2026
·
1 revision
commons-math-interpolation / BasicInterpolators / createBasicInterpolator
function createBasicInterpolator(
interpolationMethod,
xVals,
yVals
): UniFunction;Defined in: BasicInterpolators.ts:41
Returns an interpolating function for a dataset, using the specified basic interpolation method.
The interpolation method.
ArrayLike<number>
The arguments of the interpolation points, in strictly increasing order. The values must be finite.
ArrayLike<number>
The values of the interpolation points.
A function which interpolates the dataset.
Error
If the interpolation method is unknown, or for the invalid input conditions of the
create*Interpolator() function of the method (e.g. too few points for the method).