Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-array-standard-deviation

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-standard-deviation - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

types.d.ts

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Change Log

## [1.1.5](https://github.com/mljs/array/compare/ml-array-standard-deviation@1.1.4...ml-array-standard-deviation@1.1.5) (2020-10-07)
**Note:** Version bump only for package ml-array-standard-deviation
## [1.1.4](https://github.com/mljs/array/compare/ml-array-standard-deviation@1.1.3...ml-array-standard-deviation@1.1.4) (2020-04-17)

@@ -8,0 +17,0 @@

9

lib-es6/index.js
import variance from 'ml-array-variance';
/**
* Computes the standard deviation of the given values
* @param {Array} values
* @param {object} [options]
* @param {boolean} [options.unbiased = true] - if true, divide by (n-1); if false, divide by n.
* @param {number} [options.mean = arrayMean] - precalculated mean, if any.
* @return {number}
*/
function standardDeviation(values) {

@@ -13,0 +4,0 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

@@ -7,10 +7,2 @@ 'use strict';

/**
* Computes the standard deviation of the given values
* @param {Array} values
* @param {object} [options]
* @param {boolean} [options.unbiased = true] - if true, divide by (n-1); if false, divide by n.
* @param {number} [options.mean = arrayMean] - precalculated mean, if any.
* @return {number}
*/
function standardDeviation(values, options = {}) {

@@ -17,0 +9,0 @@ return Math.sqrt(variance(values, options));

12

package.json
{
"name": "ml-array-standard-deviation",
"version": "1.1.4",
"version": "1.1.5",
"description": "Get the standard deviation in an array",
"main": "lib/index.js",
"module": "lib-es6/index.js",
"types": "types.d.ts",
"files": [
"lib",
"lib-es6",
"src"
"src",
"types.d.ts"
],

@@ -24,6 +26,6 @@ "repository": {

"dependencies": {
"is-any-array": "^0.0.3",
"ml-array-variance": "^1.1.4"
"is-any-array": "^0.1.0",
"ml-array-variance": "^1.1.5"
},
"gitHead": "f4d819343eda4106db474597986b1297d608c8f4"
"gitHead": "942138d036d4c0753ad4c261cc692652c0a9cac1"
}

@@ -0,0 +0,0 @@ # array-standard-deviation

@@ -0,0 +0,0 @@ import standardDeviation from '..';

import variance from 'ml-array-variance';
/**
* Computes the standard deviation of the given values
* @param {Array} values
* @param {object} [options]
* @param {boolean} [options.unbiased = true] - if true, divide by (n-1); if false, divide by n.
* @param {number} [options.mean = arrayMean] - precalculated mean, if any.
* @return {number}
*/
export default function standardDeviation(values, options = {}) {
return Math.sqrt(variance(values, options));
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc