JSPM

@dmytropaduchak/simple-linear-interpolation

1.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 928
  • Score
    100M100P100Q125481F
  • License ISC

A simple linear interpolation module that construct new data points within the range of a discrete set of known data points

Package Exports

  • @dmytropaduchak/simple-linear-interpolation
  • @dmytropaduchak/simple-linear-interpolation/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dmytropaduchak/simple-linear-interpolation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

πŸ‡ΊπŸ‡¦ HELP UKRAINE

GOOD EVENING WE ARE FROM UKRAINE.

We fight for democratic values, for freedom, for our future. We need your support. There are dozen ways to help us, JUST DO IT.

Build Status Coverage Status NPM Version

Simple Linear Interpolation

A simple interpolation module that construct new data points within the range of a discrete set of known data points. Linear Interpolation EXAMPLE.

Installation

You can install this package using NPM:

npm i @dmytropaduchak/simple-linear-interpolation --save

How use

Simple example JavaScript / TypeScript:

import { linearInterpolation } from "@dmytropaduchak/simple-linear-interpolation";

const points = [{ x: 1, y: 1}, { x: 2, y: 2 }];
const calculate = linearInterpolation(points);

calculate({ x: 1.5 }); // y -> 1.5
calculate({ y: 1.5 }); // x -> 1.5

Unit testing

For run unit tests, use:

npm run test

All unit test report you can find at report/ folder.

For run test at watch mode, use:

npm run test:dev

Linting

For check eslint rules, use:

npm run lint

For auto fix all eslint bugs, use:

npm run lint:fix

License

Except where noted otherwise, files are licensed under the MIT License.

Information