Skip to content

Commit 2d221a0

Browse files
committed
fixup! Made the suggested changes
--- 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: passed - 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: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent ae5c2bb commit 2d221a0

File tree

6 files changed

+8
-12
lines changed

6 files changed

+8
-12
lines changed

lib/node_modules/@stdlib/stats/base/dists/triangular/ctor/benchmark/benchmark.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ bench( pkg+'::set:a', function benchmark( bm ) {
119119
}
120120
}
121121
bm.toc();
122-
if ( isnan( y[ i % len ] ) ) {
122+
if ( isnan( dist.a ) ) {
123123
bm.fail( 'should not return NaN' );
124124
}
125125
bm.pass( 'benchmark finished' );
@@ -170,7 +170,7 @@ bench( pkg+'::set:b', function benchmark( bm ) {
170170
len = 100;
171171
y = new Float64Array( len );
172172
for ( i = 0; i < len; i++ ) {
173-
y[ i ] = uniform( c + EPS, c + 100.0);
173+
y[ i ] = uniform( c + EPS, c + 100.0 );
174174
}
175175

176176
bm.tic();
@@ -181,7 +181,7 @@ bench( pkg+'::set:b', function benchmark( bm ) {
181181
}
182182
}
183183
bm.toc();
184-
if ( isnan( y[ i % len ] ) ) {
184+
if ( isnan( dist.b ) ) {
185185
bm.fail( 'should not return NaN' );
186186
}
187187
bm.pass( 'benchmark finished' );
@@ -243,7 +243,7 @@ bench( pkg+'::set:c', function benchmark( bm ) {
243243
}
244244
}
245245
bm.toc();
246-
if ( isnan( y[ i % len ] ) ) {
246+
if ( isnan( dist.c ) ) {
247247
bm.fail( 'should not return NaN' );
248248
}
249249
bm.pass( 'benchmark finished' );

lib/node_modules/@stdlib/stats/base/dists/triangular/mgf/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ bench( pkg, function benchmark( b ) {
4747
mode = new Float64Array( len );
4848

4949
for ( i = 0; i < len; i++ ) {
50-
t[ i ] = uniform( 0.0, 5.0);
50+
t[ i ] = uniform( 0.0, 5.0 );
5151
min[ i ] = uniform( 0.0, 10.0 );
5252
max[ i ] = uniform( min[ i ] + EPS, min[ i ] + 40.0 );
5353
mode[ i ] = uniform( min[ i ], max[ i ] );
@@ -85,7 +85,7 @@ bench( pkg+':factory', function benchmark( b ) {
8585
len = 100;
8686
t = new Float64Array( len );
8787
for ( i = 0; i < len; i++ ) {
88-
t[ i ] = uniform( 0.0, 5.0);
88+
t[ i ] = uniform( 0.0, 5.0 );
8989
}
9090

9191
b.tic();

lib/node_modules/@stdlib/stats/base/dists/triangular/mgf/benchmark/benchmark.native.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5454
min = new Float64Array( len );
5555
max = new Float64Array( len );
5656
mode = new Float64Array( len );
57-
5857
for ( i = 0; i < len; i++ ) {
59-
t[ i ] = uniform( 0.0, 5.0);
58+
t[ i ] = uniform( 0.0, 5.0 );
6059
min[ i ] = uniform( 0.0, 10.0 );
6160
max[ i ] = uniform( min[ i ] + EPS, min[ i ] + 40.0 );
6261
mode[ i ] = uniform( min[ i ], max[ i ] );

lib/node_modules/@stdlib/stats/base/dists/triangular/pdf/benchmark/benchmark.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ bench( pkg, function benchmark( b ) {
4545
min = new Float64Array( len );
4646
max = new Float64Array( len );
4747
mode = new Float64Array( len );
48-
4948
for ( i = 0; i < len; i++ ) {
5049
x[ i ] = uniform( 0.0, 30.0 );
5150
min[ i ] = uniform( 0.0, 10.0 );

lib/node_modules/@stdlib/stats/base/dists/triangular/pdf/benchmark/benchmark.native.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5454
min = new Float64Array( len );
5555
max = new Float64Array( len );
5656
mode = new Float64Array( len );
57-
5857
for ( i = 0; i < len; i++ ) {
5958
x[ i ] = uniform( 0.0, 30.0 );
6059
min[ i ] = uniform( 0.0, 10.0 );

lib/node_modules/@stdlib/stats/base/dists/triangular/quantile/benchmark/benchmark.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ bench( pkg, function benchmark( b ) {
4545
min = new Float64Array( len );
4646
max = new Float64Array( len );
4747
mode = new Float64Array( len );
48-
4948
for ( i = 0; i < len; i++ ) {
5049
p[ i ] = uniform( 0.0, 1.0 );
5150
min[ i ] = uniform( 0.0, 10.0 );
@@ -90,7 +89,7 @@ bench( pkg+':factory', function benchmark( b ) {
9089

9190
b.tic();
9291
for ( i = 0; i < b.iterations; i++ ) {
93-
y = myquantile( p[ i % len] );
92+
y = myquantile( p[ i % len ] );
9493
if ( isnan( y ) ) {
9594
b.fail( 'should not return NaN' );
9695
}

0 commit comments

Comments
 (0)