commons-math-interpolation

A partial port of the Apache Commons Math Interpolation package, including Akima cubic spline interpolation and LOESS/LOWESS local regression.

Usage no npm install needed!

<script type="module">
  import commonsMathInterpolation from 'https://cdn.skypack.dev/commons-math-interpolation';
</script>

README

commons-math-interpolation

This package is a partial TypeScript port of some Java classes of the Apache Commons Math library.

The following forms of interpolation are implemented:

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