Nighttime Peanut Migrations
    Have ideas to improve npm?Join in the discussion! »

    simple-bilinear-interpolation
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.6 • Public • Published

    Build Status Coverage Status NPM Version Dependecy Status
    DEV Dependency Status

    Simple Bilinear Interpolation

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

    Installation

    You can install this package using NPM:

    npm i simple-bilinear-interpolation --save

    How use

    Simple example JavaScript / TypeScript:

    import { bilinearInterpolation } from "simple-bilinear-interpolation";
    
    const points = [{ x: 1, y: 1, z: 11 }, { x: 2, y: 1, z: 12 }, { x: 1, y: 2, z: 21 }, { x: 2, y: 2, z: 22 }];
    const calculate = bilinearInterpolation(points);
    
    calculate({ x: 1.5, y: 1.5 }); // z -> 16.5
    calculate({ x: 1.5, z: 16.5 }); // y -> 1.5
    calculate({ y: 1.5, z: 16.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

    Install

    npm i simple-bilinear-interpolation

    DownloadsWeekly Downloads

    8

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    18.2 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar