Skip to content

Commit 7e24b8b

Browse files
committed
test: slightly increase tolerances for passing tests
--- 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 a3d0ee8 commit 7e24b8b

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

lib/node_modules/@stdlib/stats/base/dists/arcsine/quantile/test/test.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ tape( 'the function evaluates the quantile for `p` given a small range `b - a`',
105105
t.equal( y, expected[i], 'p: '+p[i]+', a: '+a[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
106106
} else {
107107
delta = abs( y - expected[ i ] );
108-
tol = 1.0 * EPS * abs( expected[ i ] );
108+
tol = 2.0 * EPS * abs( expected[ i ] );
109109
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. a: '+a[i]+'. b: '+b[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
110110
}
111111
}
@@ -132,7 +132,7 @@ tape( 'the function evaluates the quantile for `p` given a medium range `b - a`'
132132
t.equal( y, expected[i], 'p: '+p[i]+', a: '+a[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
133133
} else {
134134
delta = abs( y - expected[ i ] );
135-
tol = 1.0 * EPS * abs( expected[ i ] );
135+
tol = 2.0 * EPS * abs( expected[ i ] );
136136
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. a: '+a[i]+'. b: '+b[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
137137
}
138138
}
@@ -159,7 +159,7 @@ tape( 'the function evaluates the quantile for `p` given a large range `b - a`',
159159
t.equal( y, expected[i], 'p: '+p[i]+', a: '+a[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
160160
} else {
161161
delta = abs( y - expected[ i ] );
162-
tol = 1.0 * EPS * abs( expected[ i ] );
162+
tol = 2.0 * EPS * abs( expected[ i ] );
163163
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. a: '+a[i]+'. b: '+b[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
164164
}
165165
}

lib/node_modules/@stdlib/stats/base/dists/beta/kurtosis/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ tape( 'the function returns the excess kurtosis of a beta distribution', opts, f
121121
t.equal( y, expected[i], 'alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
122122
} else {
123123
delta = abs( y - expected[ i ] );
124-
tol = 1.0 * EPS * abs( expected[ i ] );
124+
tol = 2.0 * EPS * abs( expected[ i ] );
125125
t.ok( delta <= tol, 'within tolerance. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
126126
}
127127
}

lib/node_modules/@stdlib/stats/base/dists/chisquare/entropy/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ tape( 'the function returns the differential entropy of a chi-squared distributi
8787
t.equal( y, expected[i], 'k:'+k[i]+', y: '+y+', expected: '+expected[i] );
8888
} else {
8989
delta = abs( y - expected[ i ] );
90-
tol = 15.0 * EPS * abs( expected[ i ] );
90+
tol = 20.0 * EPS * abs( expected[ i ] );
9191
t.ok( delta <= tol, 'within tolerance. k: '+k[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
9292
}
9393
}

lib/node_modules/@stdlib/stats/base/dists/f/kurtosis/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ tape( 'the function returns the excess kurtosis of an F distribution', opts, fun
145145
t.equal( y, expected[i], 'd1: '+d1[i]+', d2: '+d2[i]+', y: '+y+', expected: '+expected[i] );
146146
} else {
147147
delta = abs( y - expected[ i ] );
148-
tol = 1.0 * EPS * abs( expected[ i ] );
148+
tol = 2.0 * EPS * abs( expected[ i ] );
149149
t.ok( delta <= tol, 'within tolerance. d1: '+d1[i]+'. d2: '+d2[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
150150
}
151151
}

lib/node_modules/@stdlib/stats/base/dists/laplace/pdf/test/test.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ tape( 'the function evaluates the pdf for `x` given positive `mu`', opts, functi
126126
t.equal( y, expected[i], 'x: '+x[i]+', mu:'+mu[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
127127
} else {
128128
delta = abs( y - expected[ i ] );
129-
tol = 1.0 * EPS * abs( expected[ i ] );
129+
tol = 2.0 * EPS * abs( expected[ i ] );
130130
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. mu: '+mu[i]+'. b: '+b[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
131131
}
132132
}
@@ -155,7 +155,7 @@ tape( 'the function evaluates the pdf for `x` given negative `mu`', opts, functi
155155
t.equal( y, expected[i], 'x: '+x[i]+', mu:'+mu[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
156156
} else {
157157
delta = abs( y - expected[ i ] );
158-
tol = 1.0 * EPS * abs( expected[ i ] );
158+
tol = 2.0 * EPS * abs( expected[ i ] );
159159
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. mu: '+mu[i]+'. b: '+b[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
160160
}
161161
}
@@ -184,7 +184,7 @@ tape( 'the function evaluates the pdf for `x` given large variance (large `b` )'
184184
t.equal( y, expected[i], 'x: '+x[i]+', mu:'+mu[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
185185
} else {
186186
delta = abs( y - expected[ i ] );
187-
tol = 1.0 * EPS * abs( expected[ i ] );
187+
tol = 2.0 * EPS * abs( expected[ i ] );
188188
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. mu: '+mu[i]+'. b: '+b[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
189189
}
190190
}

lib/node_modules/@stdlib/stats/base/dists/levy/logcdf/test/test.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ tape( 'the function evaluates the logcdf for `x` given positive `mu`', opts, fun
132132
t.equal( y, expected[i], 'x: '+x[i]+', mu:'+mu[i]+', c: '+c[i]+', y: '+y+', expected: '+expected[i] );
133133
} else {
134134
delta = abs( y - expected[ i ] );
135-
tol = 1.0 * EPS * abs( expected[ i ] );
135+
tol = 3.0 * EPS * abs( expected[ i ] );
136136
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. mu: '+mu[i]+'. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
137137
}
138138
}
@@ -161,7 +161,7 @@ tape( 'the function evaluates the logcdf for `x` given negative `mu`', opts, fun
161161
t.equal( y, expected[i], 'x: '+x[i]+', mu:'+mu[i]+', c: '+c[i]+', y: '+y+', expected: '+expected[i] );
162162
} else {
163163
delta = abs( y - expected[ i ] );
164-
tol = 1.0 * EPS * abs( expected[ i ] );
164+
tol = 3.0 * EPS * abs( expected[ i ] );
165165
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. mu: '+mu[i]+'. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
166166
}
167167
}
@@ -188,7 +188,7 @@ tape( 'the function evaluates the logcdf for `x` given large variance ( = large
188188
t.equal( y, expected[i], 'x: '+x[i]+', mu:'+mu[i]+', c: '+c[i]+', y: '+y+', expected: '+expected[i] );
189189
} else {
190190
delta = abs( y - expected[ i ] );
191-
tol = 1.0 * EPS * abs( expected[ i ] );
191+
tol = 3.0 * EPS * abs( expected[ i ] );
192192
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. mu: '+mu[i]+'. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
193193
}
194194
}

lib/node_modules/@stdlib/stats/base/dists/pareto-type1/kurtosis/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ tape( 'the function returns the excess kurtosis of a Pareto (Type I) distributio
130130
t.equal( y, expected[i], 'alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
131131
} else {
132132
delta = abs( y - expected[ i ] );
133-
tol = 1.0 * EPS * abs( expected[ i ] );
133+
tol = 2.0 * EPS * abs( expected[ i ] );
134134
t.ok( delta <= tol, 'within tolerance. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
135135
}
136136
}

lib/node_modules/@stdlib/stats/base/dists/triangular/entropy/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ tape( 'the function returns the differential entropy of a triangular distributio
100100
t.equal( y, expected[i], 'a: '+a[i]+', b: '+b[i]+', c: '+c[i]+', y: '+y+', expected: '+expected[i] );
101101
} else {
102102
delta = abs( y - expected[ i ] );
103-
tol = 1.0 * EPS * abs( expected[ i ] );
103+
tol = 3.0 * EPS * abs( expected[ i ] );
104104
t.ok( delta <= tol, 'within tolerance. a: '+a[i]+'. b: '+b[i]+'. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
105105
}
106106
}

lib/node_modules/@stdlib/stats/base/dists/weibull/logpdf/test/test.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ tape( 'the function evaluates the logpdf for `x` given large `lambda` and `k`',
168168
t.equal( y, expected[i], 'x: '+x[i]+', k: '+k[i]+', lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
169169
} else {
170170
delta = abs( y - expected[ i ] );
171-
tol = 1.0 * EPS * abs( expected[ i ] );
171+
tol = 2.0 * EPS * abs( expected[ i ] );
172172
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. k: '+k[i]+'. lambda: '+lambda[i]+'. y: '+y+'. Expected: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
173173
}
174174
}
@@ -195,7 +195,7 @@ tape( 'the function evaluates the logpdf for `x` given large scale parameter `la
195195
t.equal( y, expected[i], 'x: '+x[i]+', k: '+k[i]+', lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
196196
} else {
197197
delta = abs( y - expected[ i ] );
198-
tol = 1.0 * EPS * abs( expected[ i ] );
198+
tol = 2.0 * EPS * abs( expected[ i ] );
199199
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. k: '+k[i]+'. lambda: '+lambda[i]+'. y: '+y+'. Expected: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
200200
}
201201
}
@@ -222,7 +222,7 @@ tape( 'the function evaluates the logpdf for `x` given large shape parameter `k`
222222
t.equal( y, expected[i], 'x: '+x[i]+', k: '+k[i]+', lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
223223
} else {
224224
delta = abs( y - expected[ i ] );
225-
tol = 1.0 * EPS * abs( expected[ i ] );
225+
tol = 10.0 * EPS * abs( expected[ i ] );
226226
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. k: '+k[i]+'. lambda: '+lambda[i]+'. y: '+y+'. Expected: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
227227
}
228228
}

lib/node_modules/@stdlib/stats/base/dists/weibull/pdf/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ tape( 'the function evaluates the pdf for `x` given large scale parameter `lambd
194194
t.equal( y, expected[i], 'x: '+x[i]+', k: '+k[i]+', lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
195195
} else {
196196
delta = abs( y - expected[ i ] );
197-
tol = 1.0 * EPS * abs( expected[ i ] );
197+
tol = 2.0 * EPS * abs( expected[ i ] );
198198
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. k: '+k[i]+'. lambda: '+lambda[i]+'. y: '+y+'. Expected: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
199199
}
200200
}

0 commit comments

Comments
 (0)