1.2.1 • Published 4 years ago

interpolations v1.2.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

interpolation

Code to interpolate between 2 values and 2 given derives.

Usage

install over npm:

npm i --save interpolations

hermite-interpolation:

const interpolation = new HermiteInterpolation(/* from x: */ 0, /* to x: */ 1, /* from y: */ 3, /* to y: */ 10, /* from derivate: */ 0, /* to derivate: */ 0);
const interpolated = interpolation.eval(/*x value to interpolate for:*/ 0.3);
console.log(interpolated);