Neurotoxin Powered Marketing

    @signalprocessing/windows
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.1 • Public • Published

    Signal Processing

    The Signal Processing Windows module contains several windowing functions.

    Install

    npm install @signalprocessing/windows --save

    Usage

    Check external docs for the detailed explanation of windowing functions.

    @signalprocessing/windows module can be both imported as commonJS module or ES module.

    let windows = require("@signalprocessing/windows");
    //Length of signal
    let L = 1500;
    • Hamming Window

    let wm = windows.hamming(L);
    
    //Default type of windowing function is symmetric. You may change it to periodic.
    
    let wmP = windows.hamming(L, "periodic");
    • Hann Window

    let wh = windows.hann(L);
    
    //Default type of windowing function is symmetric. You may change it to periodic.
    
    let whP = windows.hann(L, "periodic");
    • Flattop Window

    let wf = windows.flattop(L);
    • Rect Window

    let wr = windows.rect(L);
    • Barthann Window

    let wb = windows.barthann(L);
    • Bartlett Window

    let wr = windows.bartlett(L);
    • Blackman Window

    let wbm = windows.blackman(L);
    
    //Default type of windowing function is symmetric. You may change it to periodic.
    
    let wbmP = windows.blackman(L, "periodic");
    • Blackmanharris Window

    let wbh = windows.blackmanharris(L);
    
    //Default type of windowing function is symmetric. You may change it to periodic.
    
    let wbhP = windows.blackmanharris(L, "periodic");
    • Bohman Window

    let wmn = windows.bohman(L);

    This module is actively evolving. I am planning to add Tukey, Kaiser, Parzen, Taylor, Gauss, Triangular and Chebyshev windowing functions soon.

    License

    MIT

    Install

    npm i @signalprocessing/windows

    DownloadsWeekly Downloads

    27

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    18.7 kB

    Total Files

    10

    Last publish

    Collaborators

    • saygiliy15