Skip to content

Commit 0a23889

Browse files
committed
test: 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 0643357 commit 0a23889

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ tape( 'the function evaluates the logpdf for `x` given large `alpha`', opts, fun
217217
t.equal( y, expected[i], 'x: '+x[i]+', alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
218218
} else {
219219
delta = abs( y - expected[ i ] );
220-
tol = 20000.0 * EPS * abs( expected[ i ] );
220+
tol = 22000.0 * EPS * abs( expected[ i ] );
221221
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
222222
}
223223
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ tape( 'the function returns the standard deviation of a Bradford distribution gi
118118
t.equal( y, expected[i], 'c: '+c[i]+', y: '+y+', expected: '+expected[i] );
119119
} else {
120120
delta = abs( y - expected[ i ] );
121-
tol = 8.0 * EPS * abs( expected[ i ] );
121+
tol = 10.0 * EPS * abs( expected[ i ] );
122122
t.ok( delta <= tol, 'within tolerance. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
123123
}
124124
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ tape( 'the function returns the variance of a Bradford distribution given large
118118
t.equal( y, expected[i], 'c: '+c[i]+', y: '+y+', expected: '+expected[i] );
119119
} else {
120120
delta = abs( y - expected[ i ] );
121-
tol = 15.2 * EPS * abs( expected[ i ] );
121+
tol = 20.0 * EPS * abs( expected[ i ] );
122122
t.ok( delta <= tol, 'within tolerance. c: '+c[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
123123
}
124124
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ tape( 'the function evaluates the quantile function at `p` given `x0` and `gamma
198198
t.equal( y, expected[i], 'p: '+p[i]+', x0:'+x0[i]+', gamma: '+gamma[i]+', y: '+y+', expected: '+expected[i] );
199199
} else {
200200
delta = abs( y - expected[ i ] );
201-
tol = 50.0 * EPS * abs( expected[ i ] );
201+
tol = 90.0 * EPS * abs( expected[ i ] );
202202
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. x0: '+x0[i]+'. gamma: '+gamma[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
203203
}
204204
}

lib/node_modules/@stdlib/stats/base/dists/gumbel/mean/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ tape( 'the function returns the mean of a Gumbel distribution', opts, function t
105105
t.equal( y, expected[i], 'mu:'+mu[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
106106
} else {
107107
delta = abs( y - expected[ i ] );
108-
tol = 2.0 * EPS * abs( expected[ i ] );
108+
tol = 50.0 * EPS * abs( expected[ i ] );
109109
t.ok( delta <= tol, 'within tolerance. mu: '+mu[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
110110
}
111111
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ tape( 'the function evaluates the quantile for `x` given positive mean `mu`', op
122122
t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
123123
} else {
124124
delta = abs( y - expected[ i ] );
125-
tol = 1.0 * EPS * abs( expected[ i ] );
125+
tol = 50.0 * EPS * abs( expected[ i ] );
126126
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
127127
}
128128
}
@@ -151,7 +151,7 @@ tape( 'the function evaluates the quantile for `x` given negative mean `mu`', op
151151
t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
152152
} else {
153153
delta = abs( y - expected[ i ] );
154-
tol = 1.0 * EPS * abs( expected[ i ] );
154+
tol = 50.0 * EPS * abs( expected[ i ] );
155155
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
156156
}
157157
}
@@ -180,7 +180,7 @@ tape( 'the function evaluates the quantile function at `p` given large variance
180180
t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
181181
} else {
182182
delta = abs( y - expected[ i ] );
183-
tol = 1.0 * EPS * abs( expected[ i ] );
183+
tol = 50.0 * EPS * abs( expected[ i ] );
184184
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
185185
}
186186
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ tape( 'the function evaluates the pdf for `x` given large `alpha` and `beta`', o
143143
t.equal( y, expected[i], 'x: '+x[i]+', alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
144144
} else {
145145
delta = abs( y - expected[ i ] );
146-
tol = EPS * abs( expected[ i ] );
146+
tol = 130.0 * EPS * abs( expected[ i ] );
147147
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
148148
}
149149
}
@@ -170,7 +170,7 @@ tape( 'the function evaluates the pdf for `x` given large shape parameter `alpha
170170
t.equal( y, expected[i], 'x: '+x[i]+', alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
171171
} else {
172172
delta = abs( y - expected[ i ] );
173-
tol = EPS * abs( expected[ i ] );
173+
tol = 70.0 * EPS * abs( expected[ i ] );
174174
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
175175
}
176176
}
@@ -197,7 +197,7 @@ tape( 'the function evaluates the pdf for `x` given large rate parameter `beta`'
197197
t.equal( y, expected[i], 'x: '+x[i]+', alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
198198
} else {
199199
delta = abs( y - expected[ i ] );
200-
tol = 20.0 * EPS * abs( expected[ i ] );
200+
tol = 75.0 * EPS * abs( expected[ i ] );
201201
t.ok( delta <= tol, 'within tolerance. x: '+x[ i ]+'. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
202202
}
203203
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ tape( 'the function evaluates the quantile function at `p` given positive `mu`',
133133
t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', s: '+s[i]+', y: '+y+', expected: '+expected[i] );
134134
} else {
135135
delta = abs( y - expected[ i ] );
136-
tol = 1.0 * EPS * abs( expected[ i ] );
136+
tol = 60.0 * EPS * abs( expected[ i ] );
137137
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. s: '+s[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
138138
}
139139
}
@@ -162,7 +162,7 @@ tape( 'the function evaluates the quantile function at `p` given negative `mu`',
162162
t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', s: '+s[i]+', y: '+y+', expected: '+expected[i] );
163163
} else {
164164
delta = abs( y - expected[ i ] );
165-
tol = 1.0 * EPS * abs( expected[ i ] );
165+
tol = 110.0 * EPS * abs( expected[ i ] );
166166
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. s: '+s[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
167167
}
168168
}
@@ -191,7 +191,7 @@ tape( 'the function evaluates the quantile function at `p` given large variance
191191
t.equal( y, expected[i], 'p: '+p[i]+', mu:'+mu[i]+', s: '+s[i]+', y: '+y+', expected: '+expected[i] );
192192
} else {
193193
delta = abs( y - expected[ i ] );
194-
tol = 1.0 * EPS * abs( expected[ i ] );
194+
tol = 8.0 * EPS * abs( expected[ i ] );
195195
t.ok( delta <= tol, 'within tolerance. p: '+p[ i ]+'. mu: '+mu[i]+'. s: '+s[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
196196
}
197197
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ tape( 'the function returns the excess kurtosis of a lognormal distribution', op
105105
t.equal( y, expected[i], 'mu:'+mu[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
106106
} else {
107107
delta = abs( y - expected[ i ] );
108-
tol = 10.0 * EPS * abs( expected[ i ] );
108+
tol = 160.0 * EPS * abs( expected[ i ] );
109109
t.ok( delta <= tol, 'within tolerance. mu: '+mu[i]+'. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
110110
}
111111
}

lib/node_modules/@stdlib/stats/base/dists/lognormal/mode/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ tape( 'the function returns the mode of a lognormal distribution', opts, functio
105105
t.equal( y, expected[i], 'mu:'+mu[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
106106
} else {
107107
delta = abs( y - expected[ i ] );
108-
tol = 1.0 * EPS * abs( expected[ i ] );
108+
tol = 18.0 * EPS * abs( expected[ i ] );
109109
t.ok( delta <= tol, 'within tolerance. mu: '+mu[i]+'. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
110110
}
111111
}

0 commit comments

Comments
 (0)