JSPM

standarddeviation

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q26720F
  • License MIT

A tiny node module to calculate Standard Deviation from a given array dataset

Package Exports

  • standarddeviation

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (standarddeviation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

STDEV - Standard Deviation

A tiny library for calculating Standard Deviation. Inputs a dataset array, retrieves the calculated standard deviation as float.

Installation

NPM: npm install standarddeviation --save

Yarn: yarn add standarddeviation

Usage

Require the module in your node project: const stdev = require('standarddeviation')

Make sure you have a dataset that is an array: const exampleSet = [0, 1, 2, 3, 4, 5, 6]

Execute Standard Deviation calculation: const deviation = stdev.calculateStandardDeviation(exampleSet)

Log the result console.log(deviation)

Check your console for the result: $ 2.160246899469287

Tests

Run mocha/chai: npm test

Contributing

Please help me in making this module even better. File an issue if something doesn't work. Thanks!

Contributors

  • supernoir

Release History

  • 0.0.1 Initial release
  • 0.0.2 Renames Module to StandardDeviation