simple-statistics
Simple Statistics
Last updated a month ago by GitHub Actions .
ISC · Repository · Original npm · Tarball · package.json
$ npm install simple-statistics 
SYNC missed versions from official npm registry.

Simple Statistics

A JavaScript implementation of descriptive, regression, and inference statistics.

Implemented in literate JavaScript with no dependencies, designed to work in all modern browsers as well as in node.js.

Installation

  • I'm using Node.js, Webpack, Browserify, Rollup, or another module bundler, and install packages from npm.
    • First, install the simple-statistics module, using npm install simple-statistics, then include the code with require or import:
    • I use the require function to use modules in my project. (most likely)
      • When you use require, you have the freedom to assign the module to any variable name you want, but you need to specify the module's name exactly: in this case, 'simple-statistics'. The require method returns an object with all of the module's methods attached to it.
        var ss = require('simple-statistics')
    • I use import to use modules in my project. I'm probably using Babel, @std/esm, Webpack, or Rollup.
      • Import all functions under the ss object:
        import * as ss from 'simple-statistics'
        Include a specific named export:
        import {min} from 'simple-statistics'
        Simple statistics has only named exports for ES6.
  • I'm using Deno.
    • We recommend using Deno's first-class NPM compatibility to use simple-statistics from NPM: you'll need to import it as npm:simple-statistics.
  • I'm not using a module bundler. I'm writing a web page, and want to include simple-statistics using a script tag.
    • I want to support all browsers

      • When you use simple-statistics from a script tag, you don't get to choose the variable name it is assigned to: simple-statistics will always become available globally as the variable ss. You can reassign this variable to another name if you want to, but doing so is optional.

        <script src='https://unpkg.com/simple-statistics@8.0.0/dist/simple-statistics.min.js'>
        </script>
        
    • I want to use ES6 modules in a browser and I'm willing to only support new browsers to do it

      • This module works great with the ?module query parameter of unpkg. If you specify type='module' in your script tag, you'll be able to import simple-statistics directly - through index.js and with true ES6 import syntax and behavior.

        <script type='module'>
        import {min} from "https://unpkg.com/simple-statistics@8.0.0/index.js?module"
        console.log(min([1, 2, 3]))
        </script>
        

        This feature is still experimental in unpkg and very bleeding-edge.

Current Tags

  • 8.0.0                                ...           latest (a month ago)
  • 7.0.9-alpha.0                                ...           testing (7 years ago)

87 Versions

  • 8.0.0                                ...           a month ago
  • 7.12.1                                ...           2 months ago
  • 7.12.0                                ...           3 months ago
  • 7.11.0                                ...           3 months ago
  • 7.10.2                                ...           3 months ago
  • 7.10.1                                ...           3 months ago
  • 7.10.0                                ...           4 months ago
  • 7.9.3                                ...           5 months ago
  • 7.9.2                                ...           5 months ago
  • 7.9.1                                ...           5 months ago
  • 7.9.0                                ...           6 months ago
  • 7.8.9                                ...           9 months ago
  • 7.8.8                                ...           2 years ago
  • 7.8.7                                ...           2 years ago
  • 7.8.6                                ...           2 years ago
  • 7.8.5                                ...           2 years ago
  • 7.8.4                                ...           2 years ago
  • 7.8.3                                ...           4 years ago
  • 7.8.2                                ...           4 years ago
  • 7.8.1                                ...           4 years ago
  • 7.8.0                                ...           4 years ago
  • 7.7.6                                ...           4 years ago
  • 7.7.5                                ...           5 years ago
  • 7.7.4                                ...           5 years ago
  • 7.7.3                                ...           5 years ago
  • 7.7.2                                ...           5 years ago
  • 7.7.1                                ...           5 years ago
  • 7.7.0                                ...           6 years ago
  • 7.6.0                                ...           6 years ago
  • 7.5.0                                ...           6 years ago
  • 7.4.1                                ...           6 years ago
  • 7.4.0                                ...           6 years ago
  • 7.3.2                                ...           6 years ago
  • 7.3.1                                ...           6 years ago
  • 7.3.0                                ...           6 years ago
  • 7.2.0                                ...           6 years ago
  • 7.1.0                                ...           7 years ago
  • 7.0.9                                ...           7 years ago
  • 7.0.9-alpha.0                                ...           7 years ago
  • 7.0.8                                ...           7 years ago
  • 7.0.7                                ...           7 years ago
  • 7.0.6                                ...           7 years ago
  • 7.0.5                                ...           7 years ago
  • 7.0.2                                ...           8 years ago
  • 7.0.1                                ...           8 years ago
  • 7.0.0                                ...           8 years ago
  • 6.1.1                                ...           8 years ago
  • 6.1.0                                ...           8 years ago
  • 6.0.1                                ...           9 years ago
  • 6.0.0                                ...           9 years ago
  • 5.4.0                                ...           9 years ago
  • 5.3.1                                ...           9 years ago
  • 5.3.0                                ...           9 years ago
  • 5.2.1                                ...           9 years ago
  • 5.2.0                                ...           9 years ago
  • 5.1.0                                ...           9 years ago
  • 5.0.1                                ...           9 years ago
  • 5.0.0                                ...           9 years ago
  • 4.1.1                                ...           9 years ago
  • 4.1.0                                ...           10 years ago
  • 4.0.0                                ...           10 years ago
  • 3.0.0                                ...           10 years ago
  • 2.5.0                                ...           10 years ago
  • 2.4.0                                ...           10 years ago
  • 2.3.0                                ...           10 years ago
  • 2.2.0                                ...           10 years ago
  • 2.1.0                                ...           10 years ago
  • 2.0.1                                ...           10 years ago
  • 2.0.0                                ...           11 years ago
  • 2.0.0-beta3                                ...           11 years ago
  • 2.0.0-beta2                                ...           11 years ago
  • 2.0.0-beta1                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
  • 0.9.2                                ...           12 years ago
  • 0.9.1                                ...           12 years ago
  • 0.9.0                                ...           12 years ago
  • 0.8.1                                ...           12 years ago
  • 0.8.0                                ...           13 years ago
  • 0.7.0                                ...           13 years ago
  • 0.6.0                                ...           13 years ago
  • 0.5.0                                ...           13 years ago
  • 0.4.0                                ...           13 years ago
  • 0.3.0                                ...           14 years ago
  • 0.2.0                                ...           14 years ago
  • 0.1.0                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (1)
Downloads
Total 273
Today 0
This Week 8
This Month 112
Last Day 0
Last Week 1
Last Month 94
Dependencies (0)
None
Dev Dependencies (6)

© 2010 - cnpmjs.org x YWFE | Home | YWFE