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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i cumulative-moving-average

    Weekly Downloads

    28

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • jongleberry