We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6cb29a commit a1600a1Copy full SHA for a1600a1
lib/node_modules/@stdlib/stats/incr/wmean/examples/index.js
@@ -35,7 +35,7 @@ console.log( '\nValue\tWeight\tWeighted Mean\n' );
35
for ( i = 0; i < 100; i++ ) {
36
x = randu() * 100.0;
37
w = randu() * 100.0;
38
- mu = accumulator( x );
+ mu = accumulator( x, w );
39
console.log( '%d\t%d\t%d', x.toFixed( 4 ), w.toFixed( 4 ), mu.toFixed( 4 ) );
40
}
41
console.log( '\nFinal weighted mean: %d\n', accumulator() );
0 commit comments