You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

ml-array-variance

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-variance - npm Package Compare versions

Comparing version

to
1.1.5

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

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

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

import isArray from 'is-any-array';
import arrayMean from 'ml-array-mean';
/**
* Computes the variance 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 variance(values) {

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

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

/**
* Computes the variance 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 variance(values, options = {}) {

@@ -18,0 +10,0 @@ if (!isArray(values)) {

{
"name": "ml-array-variance",
"version": "1.1.4",
"version": "1.1.5",
"description": "Get the variance 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-mean": "^1.1.3"
"is-any-array": "^0.1.0",
"ml-array-mean": "^1.1.4"
},
"gitHead": "f4d819343eda4106db474597986b1297d608c8f4"
"gitHead": "942138d036d4c0753ad4c261cc692652c0a9cac1"
}

@@ -0,0 +0,0 @@ # array-variance

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

import isArray from 'is-any-array';
import arrayMean from 'ml-array-mean';
/**
* Computes the variance 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 variance(values, options = {}) {

@@ -13,0 +5,0 @@ if (!isArray(values)) {

Sorry, the diff of this file is not supported yet