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
-
Notifications
You must be signed in to change notification settings - Fork 1
Cumulative moving average
License
math-utils/cumulative-moving-average
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Cumulative moving average
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published