Skip to content

Commit dbfb45d

Browse files
committed
fix: correct calculation for x variance
--- 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: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - 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 dfe367c commit dbfb45d

File tree

2 files changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/strided

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/strided/dztest2/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void API_SUFFIX(stdlib_strided_dztest2_ndarray)( const CBLAS_INT NX, const CBLAS
112112
ci = results->ci;
113113

114114
// Compute the standard error of the mean:
115-
xvar = sigmax * sigmay;
115+
xvar = sigmax * sigmax;
116116
yvar = sigmay * sigmay;
117117
stderr = stdlib_base_sqrt( ( xvar / (double)NX ) + ( yvar / (double)NY ) );
118118

lib/node_modules/@stdlib/stats/strided/sztest2/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void API_SUFFIX(stdlib_strided_sztest2_ndarray)( const CBLAS_INT NX, const CBLAS
112112
ci = results->ci;
113113

114114
// Compute the standard error of the mean:
115-
xvar = sigmax * sigmay;
115+
xvar = sigmax * sigmax;
116116
yvar = sigmay * sigmay;
117117
stderr = stdlib_base_sqrt( ( xvar / (double)NX ) + ( yvar / (double)NY ) ); // note: intentionally evaluated in double-precision to avoid `NX` and `NY` exceeding max safe float32 integer
118118

0 commit comments

Comments
 (0)