🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

continuous-average

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

continuous-average

Calculate averages for large quantities or continuous data without having to store a huge array

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Continuous Average

Calculate averages for large quantities or continuous data without having to store a huge array

usage

const Average = require('continuous-average');
const average = new Average();

for (let i = 1; i < 100000000; i++) {
  average.add(i);
}

console.log(average.value); // 50000000

FAQs

Package last updated on 17 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts