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

    cumulative-moving-average

    1.0.0 • Public • Published

    Cumulative Moving Average Build Status

    API

    var cma = require('cumulative-moving-average')
     
    var avg = cma()
     
    avg.push(1)
    console.log(avg.value) // 1
    console.log(avg.length) // 1
     
    avg.push(3)
    console.log(avg.value) // 2
    console.log(avg.length) // 2

    Install

    npm i cumulative-moving-average

    DownloadsWeekly Downloads

    299

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar