# @dmytropaduchak/simple-linear-interpolation

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

Latest version **1.0.8** (published 2022-07-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @dmytropaduchak/simple-linear-interpolation
pnpm add @dmytropaduchak/simple-linear-interpolation
yarn add @dmytropaduchak/simple-linear-interpolation
bun add @dmytropaduchak/simple-linear-interpolation
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2022-07-19 |
| First published | 2022-07-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dmytro Paduchak |
| Maintainers | paduchak |
| Keywords | simple, ts, ts-node, typescript, interpolate, interpolation, linear-interpolation, interpolating, mathmathematics, numeric |

## Links

- npm: https://www.npmjs.com/package/@dmytropaduchak/simple-linear-interpolation
- Repository: https://github.com/dmytropaduchak/simple-linear-interpolation
- Homepage: https://github.com/dmytropaduchak/simple-linear-interpolation#readme
- Issues: https://github.com/dmytropaduchak/simple-linear-interpolation/issues
- npm.io page: https://npm.io/package/@dmytropaduchak/simple-linear-interpolation

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.8 (latest) — 2022-07-19
- 1.0.7 — 2022-07-18

## 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](https://github.com/pinchukdiana/help-ua#-%D1%87%D0%B0%D1%82-%D0%B1%D0%BE%D1%82%D0%B8--chat-bots).

[![Build Status](https://travis-ci.org/dmytropaduchak/simple-linear-interpolation.svg?branch=master)](https://travis-ci.org/dmytropaduchak/simple-linear-interpolation)
[![Coverage Status](https://coveralls.io/repos/github/dmytropaduchak/simple-linear-interpolation/badge.svg?branch=master)](https://coveralls.io/github/dmytropaduchak/simple-linear-interpolation?branch=master)
[![NPM Version](https://badge.fury.io/js/simple-linear-interpolation.svg)](http://badge.fury.io/js/simple-linear-interpolation?type=dev)

# 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](https://dmytropaduchak.github.io/simple-interpolation-example#linear).

## Installation 

You can install this package using NPM:

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

## How use

Simple example JavaScript / TypeScript:

```JavaScript
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

- [Linear interpolation](https://en.wikipedia.org/wiki/Linear_interpolation).

---
_Source: https://npm.io/package/@dmytropaduchak/simple-linear-interpolation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
