Skip to content

Commit 68bf493

Browse files
committed
made suggested change
1 parent accce89 commit 68bf493

File tree

1 file changed

+5
-4
lines changed
  • lib/node_modules/@stdlib/stats/incr/nanewmean/lib

1 file changed

+5
-4
lines changed

lib/node_modules/@stdlib/stats/incr/nanewmean/lib/main.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var increwmean = require( '@stdlib/stats/incr/ewmean' );
24+
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2425

2526

2627
// MAIN //
@@ -52,7 +53,7 @@ var increwmean = require( '@stdlib/stats/incr/ewmean' );
5253
* // returns -1.5
5354
*/
5455
function incrnanewmean( alpha ) {
55-
var nanewmean = increwmean( alpha );
56+
var ewmean = increwmean( alpha );
5657
return accumulator;
5758

5859
/**
@@ -63,10 +64,10 @@ function incrnanewmean( alpha ) {
6364
* @returns {(number|null)} mean value or null
6465
*/
6566
function accumulator(x) {
66-
if ( arguments.length === 0 || isNaN( x ) ) {
67-
return nanewmean();
67+
if ( arguments.length === 0 || isnan( x ) ) {
68+
return ewmean();
6869
}
69-
return nanewmean( x );
70+
return ewmean( x );
7071
}
7172
}
7273

0 commit comments

Comments
 (0)