-
Notifications
You must be signed in to change notification settings - Fork 7
Index.Function.createInterpolator
Christian d'Heureuse edited this page Sep 25, 2026
·
1 revision
commons-math-interpolation / Index / createInterpolator
function createInterpolator(
interpolationMethod,
xVals,
yVals,
options?
): UniFunction;Defined in: Index.ts:74
Returns an interpolating function for a dataset, using the interpolation method with the specified name.
To specify LOESS parameters, use createLoessInterpolator directly.
The 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 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).