Giter VIP home page Giter VIP logo

simple-statistics's Introduction

Simple Statistics

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

Circle CI codecov.io npm version Greenkeeper badge

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, Webpack, or Rollup.
      • This module only supports the 'default' export when you're using ES6 module: so you can import all of its methods, attached to an object, like in this example. Importing specific methods will work in Babel, but not in Rollup.
        import ss from '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.
    • 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/[email protected]/dist/simple-statistics.js' />
      There are two options for the src attribute of that script tag: one with .min.js that is compressed, and the other without, that is raw.

simple-statistics's People

Contributors

abenrob avatar ajschumacher avatar danallison avatar e-n-f avatar eikooc avatar emanuelfeld avatar erictheise avatar evanhahn avatar fil avatar fyockm avatar greenkeeper[bot] avatar jamesmcguigan avatar joker-vd avatar jseppi avatar jthomm avatar kyleamathews avatar llimllib avatar lwd8cmd avatar mattsacks avatar mourner avatar phoeagon avatar rluta avatar schnerd avatar siculars avatar sjcaldwell avatar tmcw avatar waldyrious avatar xuefeng-zhu avatar yamadapc avatar yomguithereal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.