https://github.com/pgte/moving-average

Moving Average

https://github.com/pgte/moving-average

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (3.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Moving Average

Basic Info
  • Host: GitHub
  • Owner: pgte
  • Language: JavaScript
  • Default Branch: master
  • Size: 110 KB
Statistics
  • Stars: 62
  • Watchers: 4
  • Forks: 12
  • Open Issues: 2
  • Releases: 0
Created over 13 years ago · Last pushed over 3 years ago
Metadata Files
Readme

README.md

moving-average

Build Status

Online calculation of Exponential Moving Average for Node.js.

Also suports Moving Variance, Moving Deviation and Forecast.

The following online algorithm is implemented:

diff := x - mean incr := alpha * diff mean := mean + incr variance := (1 - alpha) * (variance + diff * incr) forecast := mean + alpha * diff

Install

bash $ npm install moving-average

Use

```javascript var timeInterval = 5 * 60 * 1000; // 5 minutes

var MA = require('moving-average'); var ma = MA(timeInterval);

setInterval(function() { ma.push(Date.now(), Math.random() * 500); console.log('moving average now is', ma.movingAverage()); console.log('moving variance now is', ma.variance()); console.log('moving deviation now is', ma.deviation()); console.log('forecast is', ma.forecast()); }); ```

License

MIT

Owner

  • Name: Pedro Teixeira
  • Login: pgte
  • Kind: user
  • Location: Funchal, Portugal
  • Company: @decipad

👾 Software Engineer 🖋 Tech writer ☕️ Open-sourcerer 🎸 Wanna-be musician 🍼 Father 🚀 Curious

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 39
  • Total Committers: 8
  • Avg Commits per committer: 4.875
  • Development Distribution Score (DDS): 0.359
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Pedro Teixeira i@p****e 25
Max Kutny m****y@g****m 4
achingbrain a****x@a****t 3
John Meisner j****r@y****m 3
Vasco Santos v****s@m****o 1
Philippe Modard p****d@g****m 1
Irakli Gozalishvili c****t@g****o 1
Philmod p****d@s****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 4
  • Total pull requests: 9
  • Average time to close issues: over 1 year
  • Average time to close pull requests: 4 months
  • Total issue authors: 4
  • Total pull request authors: 7
  • Average comments per issue: 2.75
  • Average comments per pull request: 1.44
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • chenbridge (1)
  • vasco-santos (1)
  • karlbohlmark (1)
  • mkutny (1)
Pull Request Authors
  • dependabot[bot] (2)
  • johnmeisner (2)
  • mkutny (1)
  • achingbrain (1)
  • vasco-santos (1)
  • Gozala (1)
  • Philmod (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (2)

Packages

  • Total packages: 2
  • Total downloads:
    • npm 29,923 last-month
  • Total docker downloads: 202,696,572
  • Total dependent packages: 35
    (may contain duplicates)
  • Total dependent repositories: 3,478
    (may contain duplicates)
  • Total versions: 11
  • Total maintainers: 2
npmjs.org: moving-average

Exponential Moving Average

  • Versions: 10
  • Dependent Packages: 31
  • Dependent Repositories: 2,634
  • Downloads: 11,876 Last month
  • Docker Downloads: 202,632,642
Rankings
Docker downloads count: 0.2%
Dependent repos count: 0.4%
Dependent packages count: 0.9%
Downloads: 1.3%
Average: 2.4%
Stargazers count: 5.8%
Forks count: 6.1%
Maintainers (1)
Last synced: 10 months ago
npmjs.org: @vascosantos/moving-average

Exponential Moving Average

  • Versions: 1
  • Dependent Packages: 4
  • Dependent Repositories: 844
  • Downloads: 18,047 Last month
  • Docker Downloads: 63,930
Rankings
Docker downloads count: 0.6%
Dependent repos count: 0.6%
Downloads: 1.3%
Average: 3.2%
Dependent packages count: 4.6%
Stargazers count: 5.8%
Forks count: 6.1%
Maintainers (1)
Last synced: 10 months ago

Dependencies

package-lock.json npm
  • 413 dependencies
package.json npm
  • standard ^10.0.3 development
  • tap * development