JSPM

cumulative-moving-average

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25
  • Score
    100M100P100Q88092F
  • License MIT

Cumulative moving average

Package Exports

  • cumulative-moving-average

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cumulative-moving-average) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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