Skip to content
Cumulative moving average
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
component.json
index.js
package.json

README.md

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
Something went wrong with that request. Please try again.