simple-statistics

WebJar for simple-statistics

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

simple-statistics
Last Version

Last Version

7.3.2
Release Date

Release Date

Type

Type

jar
Description

Description

simple-statistics
WebJar for simple-statistics
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/simple-statistics/simple-statistics

Download simple-statistics

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/simple-statistics/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>simple-statistics</artifactId>
    <version>7.3.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/simple-statistics/
implementation 'org.webjars.npm:simple-statistics:7.3.2'
// https://jarcasting.com/artifacts/org.webjars.npm/simple-statistics/
implementation ("org.webjars.npm:simple-statistics:7.3.2")
'org.webjars.npm:simple-statistics:jar:7.3.2'
<dependency org="org.webjars.npm" name="simple-statistics" rev="7.3.2">
  <artifact name="simple-statistics" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='simple-statistics', version='7.3.2')
)
libraryDependencies += "org.webjars.npm" % "simple-statistics" % "7.3.2"
[org.webjars.npm/simple-statistics "7.3.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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/[email protected]/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/[email protected]/index.js?module"
        console.log(min([1, 2, 3]))
        </script>
        This feature is still experimental in unpkg and very bleeding-edge.
org.webjars.npm

simple statistics

statistics in javascript with a focus on friendliness

Versions

Version
7.3.2
7.0.5
6.1.1