-
Notifications
You must be signed in to change notification settings - Fork 7
BasicInterpolators.Function.createBasicInterpolatorWithFallback
Christian d'Heureuse edited this page Sep 25, 2026
·
1 revision
commons-math-interpolation / BasicInterpolators / createBasicInterpolatorWithFallback
function createBasicInterpolatorWithFallback(
interpolationMethod,
xVals,
yVals
): UniFunction;Defined in: BasicInterpolators.ts:99
Returns an interpolating function for a dataset, using the specified basic interpolation method or a simpler method if there are too few points (see getFallbackInterpolationMethod).
The requested 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 xVals and yVals have different lengths, if the interpolation method is unknown,
or if xVals contains non-finite values or is not strictly increasing.