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

Simple Statistics

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

Coverage Status npm version

Implemented in literate JavaScript with no dependencies, designed to work in all modern browsers (including IE) 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.
  • 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@7.4.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@7.4.0/index.js?module"
        console.log(min([1, 2, 3]))
        </script>
        
        This feature is still experimental in unpkg and very bleeding-edge.

Current Tags

  • 7.4.0                                ...           latest (a month ago)
  • 7.0.9-alpha.0                                ...           testing (9 months ago)

56 Versions

  • 7.4.0                                ...           a month ago
  • 7.3.2                                ...           3 months ago
  • 7.3.1                                ...           3 months ago
  • 7.3.0                                ...           4 months ago
  • 7.2.0                                ...           5 months ago
  • 7.1.0                                ...           8 months ago
  • 7.0.9                                ...           9 months ago
  • 7.0.9-alpha.0                                ...           9 months ago
  • 7.0.8                                ...           a year ago
  • 7.0.7                                ...           a year ago
  • 7.0.6                                ...           a year ago
  • 7.0.5                                ...           2 years ago
  • 7.0.2                                ...           2 years ago
  • 7.0.1                                ...           2 years ago
  • 7.0.0                                ...           2 years ago
  • 6.1.1                                ...           2 years ago
  • 6.1.0                                ...           3 years ago
  • 6.0.1                                ...           3 years ago
  • 6.0.0                                ...           3 years ago
  • 5.4.0                                ...           3 years ago
  • 5.3.1                                ...           3 years ago
  • 5.3.0                                ...           3 years ago
  • 5.2.1                                ...           3 years ago
  • 5.2.0                                ...           3 years ago
  • 5.1.0                                ...           3 years ago
  • 5.0.1                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.1.1                                ...           3 years ago
  • 4.1.0                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.5.0                                ...           4 years ago
  • 2.4.0                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 2.0.0-beta3                                ...           5 years ago
  • 2.0.0-beta2                                ...           5 years ago
  • 2.0.0-beta1                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.9.2                                ...           6 years ago
  • 0.9.1                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.8.1                                ...           7 years ago
  • 0.8.0                                ...           7 years ago
  • 0.7.0                                ...           7 years ago
  • 0.6.0                                ...           7 years ago
  • 0.5.0                                ...           8 years ago
  • 0.4.0                                ...           8 years ago
  • 0.3.0                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.0                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Today 1,083
This Week 18,367
This Month 38,830
Last Day 3,264
Last Week 18,739
Last Month 87,576
Dependencies (0)
None
Dev Dependencies (12)
Dependents (168)

Copyright 2014 - 2017 © taobao.org |