Skip to content

Commit 31082cf

Browse files
chore: addresses commit 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: passed - 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 239ee20 commit 31082cf

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ int main( void ) {
220220

221221
</section>
222222

223-
<!-- /.references -->
224-
225223
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
226224

227225
<section class="references">
228226

229227
</section>
230228

229+
<!-- /.references -->
230+
231231
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
232232

233233
<section class="related">

lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.cdf.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,9 @@ tape( 'the function evaluates the cdf for `x` given parameter `lambda`', functio
109109
lambda = data.lambda;
110110
for ( i = 0; i < x.length; i++ ) {
111111
y = cdf( x[i], lambda[i] );
112-
if ( y === expected[i] ) {
113-
t.equal( y, expected[i], 'x: '+x[i]+', lambda:'+lambda[i]+', y: '+y+', expected: '+expected[i] );
114-
} else {
115-
delta = abs( y - expected[ i ] );
116-
tol = 4.0 * EPS * abs( expected[ i ] );
117-
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
118-
}
112+
delta = abs( y - expected[ i ] );
113+
tol = 4.0 * EPS * abs( expected[ i ] );
114+
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
119115
}
120116
t.end();
121117
});

lib/node_modules/@stdlib/stats/base/dists/exponential/cdf/test/test.native.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,9 @@ tape( 'the function evaluates the cdf for `x` given parameter `lambda`', opts, f
118118
lambda = data.lambda;
119119
for ( i = 0; i < x.length; i++ ) {
120120
y = cdf( x[i], lambda[i] );
121-
if ( y === expected[i] ) {
122-
t.equal( y, expected[i], 'x: '+x[i]+', lambda:'+lambda[i]+', y: '+y+', expected: '+expected[i] );
123-
} else {
124-
delta = abs( y - expected[ i ] );
125-
tol = 4.0 * EPS * abs( expected[ i ] );
126-
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
127-
}
121+
delta = abs( y - expected[ i ] );
122+
tol = 4.0 * EPS * abs( expected[ i ] );
123+
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
128124
}
129125
t.end();
130126
});

0 commit comments

Comments
 (0)