Skip to content

Commit 5ba90e6

Browse files
committed
test: clarify tolerance rationale in comments
--- 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: passed ---
1 parent 24c5dab commit 5ba90e6

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/bradford/variance/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ tape( 'the function returns the variance of a Bradford distribution given small
8383
/*
8484
* NOTE: the tolerance is set high in this case due to:
8585
*
86-
* 1. The shape parameter being very small which causes differences in the `ln` calculations compared to the reference (SciPy) implementation.
87-
* 2. The expected values being either very small.
86+
* 1. The shape parameter being very small which causes differences in the `ln` calculations when compared to the test fixtures by SciPy.
87+
* 2. The expected values being very small.
8888
*/
8989
tol = 643.0 * EPS * abs( expected[ i ] );
9090
t.ok( delta <= tol, 'within tolerance. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );

0 commit comments

Comments
 (0)