ml-array-variance
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.1.6](https://github.com/mljs/array/compare/ml-array-variance@1.1.5...ml-array-variance@1.1.6) (2021-03-24) | ||
### Bug Fixes | ||
* update is-any-array to v1 ([578e6d6](https://github.com/mljs/array/commit/578e6d68a429ebc72a2eaa991eec6baf377f2405)) | ||
## [1.1.5](https://github.com/mljs/array/compare/ml-array-variance@1.1.4...ml-array-variance@1.1.5) (2020-10-07) | ||
@@ -8,0 +19,0 @@ |
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var isArray = require('is-any-array'); | ||
var arrayMean = require('ml-array-mean'); | ||
var isArray = _interopDefault(require('is-any-array')); | ||
var arrayMean = _interopDefault(require('ml-array-mean')); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray); | ||
var arrayMean__default = /*#__PURE__*/_interopDefaultLegacy(arrayMean); | ||
function variance(values, options = {}) { | ||
if (!isArray(values)) { | ||
if (!isArray__default['default'](values)) { | ||
throw new TypeError('input must be an array'); | ||
} | ||
const { unbiased = true, mean = arrayMean(values) } = options; | ||
const { unbiased = true, mean = arrayMean__default['default'](values) } = options; | ||
let sqrError = 0; | ||
@@ -15,0 +18,0 @@ |
{ | ||
"name": "ml-array-variance", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Get the variance in an array", | ||
@@ -26,6 +26,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"is-any-array": "^0.1.0", | ||
"ml-array-mean": "^1.1.4" | ||
"is-any-array": "^1.0.0", | ||
"ml-array-mean": "^1.1.5" | ||
}, | ||
"gitHead": "942138d036d4c0753ad4c261cc692652c0a9cac1" | ||
"gitHead": "d06a16075e582be7b7c553cd1aecbe1d03c64b7a" | ||
} |
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
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
7525
106
0
+ Addedis-any-array@1.0.1(transitive)
- Removedis-any-array@0.1.1(transitive)
Updatedis-any-array@^1.0.0
Updatedml-array-mean@^1.1.5