Skip to content

Commit bd96b60

Browse files
feat: add new package to the stats/incr/* namespace: @stdlib/stats/incr/nanmpcorrdist
--- 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: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - 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 564976f commit bd96b60

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/incr/nanmpcorrdist/test

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/incr/nanmpcorrdist/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ tape( 'if the window size is `1` and the means are unknown, the accumulator func
651651

652652
acc = incrnanmpcorrdist( 1 );
653653
for ( i = 0; i < 100; i++ ) {
654-
r = acc( (randu() < 0.2) ? NaN : randu()*100.0, (randu() < 0.2) ? NaN : randu()*100.0 );
654+
r = acc( randu()*100.0, randu()*100.0 );
655655
t.equal( r, 1.0, 'returns expected value' );
656656
}
657657
t.end();
@@ -664,7 +664,7 @@ tape( 'if the window size is `1` and the means are known, the accumulator functi
664664

665665
acc = incrnanmpcorrdist( 1, 500.0, -500.0 ); // means are outside the range of simulated values so the correlation should never be zero
666666
for ( i = 0; i < 100; i++ ) {
667-
r = acc( (randu() < 0.8) ? NaN : randu()*100.0, (randu() < 0.8) ? NaN : randu()*100.0 );
667+
r = acc( randu()*100.0, randu()*100.0 );
668668
t.notEqual( r, 1.0, 'does not return 1' );
669669
}
670670
t.end();

0 commit comments

Comments
 (0)