Skip to content

Commit 667c659

Browse files
committed
test: ensure simulated stdev matches "known" stdev
--- 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 62325bf commit 667c659

File tree

1 file changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/stats/base/ndarray/sztest/test

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/stats/base/ndarray/sztest/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ tape( 'the function performs a Z-test over a one-dimensional ndarray (two-sided)
106106
t.strictEqual( v, out, 'returns expected value' );
107107
t.strictEqual( out.get().rejected, false, 'returns expected value' );
108108

109-
normal( xbuf.length, [ 1000.0 ], 0, 0, [ 10.0 ], 0, 0, xbuf, 1, 0, RANDOM_OPTS );
109+
normal( xbuf.length, [ 1000.0 ], 0, 0, [ 1.0 ], 0, 0, xbuf, 1, 0, RANDOM_OPTS );
110110

111111
v = sztest( [ x, out, alt, alpha, mu, sigma ] );
112112
t.strictEqual( v, out, 'returns expected value' );
113113
t.strictEqual( out.get().rejected, true, 'returns expected value' );
114114

115-
normal( xbuf.length, [ -1000.0 ], 0, 0, [ 10.0 ], 0, 0, xbuf, 1, 0, RANDOM_OPTS );
115+
normal( xbuf.length, [ -1000.0 ], 0, 0, [ 1.0 ], 0, 0, xbuf, 1, 0, RANDOM_OPTS );
116116

117117
v = sztest( [ x, out, alt, alpha, mu, sigma ] );
118118
t.strictEqual( v, out, 'returns expected value' );
@@ -156,7 +156,7 @@ tape( 'the function performs a Z-test over a one-dimensional ndarray (less)', fu
156156
t.strictEqual( v, out, 'returns expected value' );
157157
t.strictEqual( out.get().rejected, true, 'returns expected value' );
158158

159-
normal( xbuf.length, [ 1000.0 ], 0, 0, [ 10.0 ], 0, 0, xbuf, 1, 0, RANDOM_OPTS );
159+
normal( xbuf.length, [ 1000.0 ], 0, 0, [ 1.0 ], 0, 0, xbuf, 1, 0, RANDOM_OPTS );
160160

161161
v = sztest( [ x, out, alt, alpha, mu, sigma ] );
162162
t.strictEqual( v, out, 'returns expected value' );
@@ -200,7 +200,7 @@ tape( 'the function performs a Z-test over a one-dimensional ndarray (greater)',
200200
t.strictEqual( v, out, 'returns expected value' );
201201
t.strictEqual( out.get().rejected, false, 'returns expected value' );
202202

203-
normal( xbuf.length, [ 1000.0 ], 0, 0, [ 10.0 ], 0, 0, xbuf, 1, 0, RANDOM_OPTS );
203+
normal( xbuf.length, [ 1000.0 ], 0, 0, [ 1.0 ], 0, 0, xbuf, 1, 0, RANDOM_OPTS );
204204

205205
v = sztest( [ x, out, alt, alpha, mu, sigma ] );
206206
t.strictEqual( v, out, 'returns expected value' );
@@ -244,7 +244,7 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides',
244244
t.strictEqual( v, out, 'returns expected value' );
245245
t.strictEqual( out.get().rejected, false, 'returns expected value' );
246246

247-
normal( 5000, [ 1000.0 ], 0, 0, [ 10.0 ], 0, 0, xbuf, 2, 0, RANDOM_OPTS );
247+
normal( 5000, [ 1000.0 ], 0, 0, [ 1.0 ], 0, 0, xbuf, 2, 0, RANDOM_OPTS );
248248

249249
v = sztest( [ x, out, alt, alpha, mu, sigma ] );
250250
t.strictEqual( v, out, 'returns expected value' );
@@ -288,7 +288,7 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets',
288288
t.strictEqual( v, out, 'returns expected value' );
289289
t.strictEqual( out.get().rejected, false, 'returns expected value' );
290290

291-
normal( 5000, [ 1000.0 ], 0, 0, [ 10.0 ], 0, 0, xbuf, 1, 5000, RANDOM_OPTS );
291+
normal( 5000, [ 1000.0 ], 0, 0, [ 1.0 ], 0, 0, xbuf, 1, 5000, RANDOM_OPTS );
292292

293293
v = sztest( [ x, out, alt, alpha, mu, sigma ] );
294294
t.strictEqual( v, out, 'returns expected value' );

0 commit comments

Comments
 (0)