ml-array-standard-deviation
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -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 @@ |
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)); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
6287
57
1
+ Addedis-any-array@0.1.1(transitive)
- Removedis-any-array@0.0.3(transitive)
Updatedis-any-array@^0.1.0
Updatedml-array-variance@^1.1.5