This package is a partial TypeScript port of some Java classes of the Apache Commons Math library.
The following forms of interpolation are implemented:
- Akima cubic spline interpolation
- Natural cubic spline interpolation
- Linear interpolation
- Nearest neighbor interpolation
The interpolators work on a dataset of x/y points (knots).
Additionally, a local regression algorithm is implemented that can be used in conjunction with the above interpolators.
Interpolation demo: www.source-code.biz/snippets/typescript/akima
LOESS demo: www.source-code.biz/snippets/typescript/loess
NPM package: commons-math-interpolation