Skip to content

Commit dd28bbe

Browse files
Harsh MathurHarsh Mathur
authored andcommitted
fixed the error for reassigning ndarray
1 parent 8eaafff commit dd28bbe

File tree

1 file changed

+1
-22
lines changed
  • lib/node_modules/@stdlib/stats/base/ndarray/meankbn/lib

1 file changed

+1
-22
lines changed

lib/node_modules/@stdlib/stats/base/ndarray/meankbn/lib/main.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,8 @@
2121
// MODULES //
2222

2323
var meankbn = require( '@stdlib/stats/strided/meankbn' );
24-
var wrap = require( '@stdlib/ndarray/base/wrap-function' );
25-
26-
27-
// MAIN //
28-
29-
/**
30-
* Computes the arithmetic mean of a one-dimensional ndarray using the improved Kahan–Babuška algorithm.
31-
*
32-
* @param {Array<ndarray>} arrays - input ndarray
33-
* @returns {number} arithmetic mean
34-
*
35-
* @example
36-
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
37-
*
38-
* var xbuf = [ 1.0, 3.0, 4.0, 2.0 ];
39-
* var x = new ndarray( 'generic', xbuf, [ 4 ], [ 1 ], 0, 'row-major' );
40-
*
41-
* var v = meankbn( [ x ] );
42-
* // returns 2.5
43-
*/
44-
var fcn = wrap( meankbn.ndarray );
4524

4625

4726
// EXPORTS //
4827

49-
module.exports = fcn;
28+
module.exports = meankbn;

0 commit comments

Comments
 (0)