Skip to content

Commit 5865021

Browse files
committed
fixed ndarray.js ESLint issue
1 parent a977fb7 commit 5865021

File tree

1 file changed

+9
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/variancewd/lib

1 file changed

+9
-2
lines changed

lib/node_modules/@stdlib/stats/base/variancewd/lib/ndarray.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
'use strict';
2020

2121
// MODULES //
22+
2223
var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
2324
var accessors = require( './accessors.js' );
2425

@@ -66,6 +67,8 @@ var accessors = require( './accessors.js' );
6667
* - Welford, B. P. 1962. "Note on a Method for Calculating Corrected Sums of Squares and Products." _Technometrics_ 4 (3). Taylor & Francis: 419–20. doi:[10.1080/00401706.1962.10490022](https://doi.org/10.1080/00401706.1962.10490022).
6768
* - van Reeken, A. J. 1968. "Letters to the Editor: Dealing with Neely's Algorithms." _Communications of the ACM_ 11 (3): 149–50. doi:[10.1145/362929.362961](https://doi.org/10.1145/362929.362961).
6869
*
70+
*/
71+
6972
/**
7073
* Computes the variance of a strided array using Welford's algorithm.
7174
*
@@ -77,11 +80,15 @@ var accessors = require( './accessors.js' );
7780
* @returns {number} variance
7881
*/
7982
function variancewd(N, correction, x, strideX, offsetX) {
80-
var delta;
83+
var offsetX;
84+
var strideX;
8185
var delta2;
82-
var mu;
86+
var delta;
87+
var correction;
8388
var M2;
89+
var mu;
8490
var ix;
91+
var N;
8592
var v;
8693
var n;
8794
var o;

0 commit comments

Comments
 (0)