Skip to content

Commit 9455568

Browse files
committed
fix(readme): udpate example
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent c0c5867 commit 9455568

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/node_modules/@stdlib/stats/incr/nanmgmean/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ accumulator = incrnanmgmean( 5 );
127127

128128
// For each simulated datum, update the moving geometric mean...
129129
for ( i = 0; i < 100; i++ ) {
130-
v = randu() * 100.0;
130+
if ( randu() < 0.2 ) {
131+
v = NaN;
132+
} else {
133+
v = randu() * 100.0;
134+
}
131135
accumulator( v );
132136
}
133137
console.log( accumulator() );

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ var incrmgmean = require( '@stdlib/stats/incr/mgmean' );
6060
*/
6161
function incrnanmgmean( W ) {
6262
var acc = incrmgmean( W );
63-
6463
return accumulator;
6564

6665
/**

0 commit comments

Comments
 (0)