-
Notifications
You must be signed in to change notification settings - Fork 7
Index.Function.createInterpolatorWithFallback
commons-math-interpolation / Index / createInterpolatorWithFallback
function createInterpolatorWithFallback(
interpolationMethod,
xVals,
yVals,
options?
): UniFunction;Defined in: Index.ts:101
Returns an interpolating function for a dataset, using the interpolation method with the specified name or a simpler method if there are too few points (see createBasicInterpolatorWithFallback).
LOESS does not need a fallback here, because createLoessInterpolator already applies the fallback when connecting the smoothed points.
The requested interpolation method.
ArrayLike<number>
The arguments of the interpolation points, in strictly increasing order
(for "loess": in monotonically increasing order). The values must be finite.
ArrayLike<number>
The values of the interpolation points.
Optional options.
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 in the required order.