https://github.com/chdh/commons-math-interpolation
A partial TypeScript port of the Apache Commons Math Interpolation package, including Akima cubic spline interpolation and LOESS/LOWESS local regression.
https://github.com/chdh/commons-math-interpolation
akima cubic-splines interpolation loess lowess
Last synced: 3 months ago
JSON representation
A partial TypeScript port of the Apache Commons Math Interpolation package, including Akima cubic spline interpolation and LOESS/LOWESS local regression.
- Host: GitHub
- URL: https://github.com/chdh/commons-math-interpolation
- Owner: chdh
- License: mit
- Created: 2017-12-28T23:53:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T12:37:38.000Z (almost 3 years ago)
- Last Synced: 2024-10-05T11:08:06.108Z (9 months ago)
- Topics: akima, cubic-splines, interpolation, loess, lowess
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 25
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# commons-math-interpolation
This package is a partial TypeScript port of some Java classes of the [Apache Commons Math library](http://commons.apache.org/math).
The following forms of interpolation are implemented:
- [Akima cubic spline interpolation](https://en.wikipedia.org/wiki/Akima_spline)
- [Natural cubic spline interpolation](https://en.wikipedia.org/wiki/Spline_interpolation)
- [Linear interpolation](https://en.wikipedia.org/wiki/Linear_interpolation)
- [Nearest neighbor interpolation](https://en.wikipedia.org/wiki/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.
- [LOESS/LOWESS local regression](https://en.wikipedia.org/wiki/Local_regression)
Interpolation demo: [www.source-code.biz/snippets/typescript/akima](http://www.source-code.biz/snippets/typescript/akima)
LOESS demo: [www.source-code.biz/snippets/typescript/loess](http://www.source-code.biz/snippets/typescript/loess)
NPM package: [commons-math-interpolation](https://www.npmjs.com/package/commons-math-interpolation)