Skip to content

Commit 3c45aee

Browse files
committed
feat: updated spacing
1 parent f150775 commit 3c45aee

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/node_modules/@stdlib/stats/base/dists/uniform/cdf/benchmark/benchmark.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ bench( pkg, function benchmark( b ) {
3838

3939
b.tic();
4040
for ( i = 0; i < b.iterations; i++ ) {
41-
x = uniform( -10.0, 10.0);
42-
min = uniform( -20.0, 0.0);
43-
max = min + uniform( 0.0, 40.0);
41+
x = uniform( -10.0, 10.0 );
42+
min = uniform( -20.0, 0.0 );
43+
max = min + uniform( 0.0, 40.0 );
4444
y = cdf( x, min, max );
4545
if ( isnan( y ) ) {
4646
b.fail( 'should not return NaN' );
@@ -68,7 +68,7 @@ bench( pkg+':factory', function benchmark( b ) {
6868

6969
b.tic();
7070
for ( i = 0; i < b.iterations; i++ ) {
71-
x = uniform( -2.0, 0.0);
71+
x = uniform( -2.0, 0.0 );
7272
y = mycdf( x );
7373
if ( isnan( y ) ) {
7474
b.fail( 'should not return NaN' );

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ bench( pkg+'::instantiation', function benchmark( bm ) {
3838

3939
bm.tic();
4040
for ( i = 0; i < bm.iterations; i++ ) {
41-
a = uniform( EPS, 10.0);
42-
b = uniform( a + EPS, 10.0);
41+
a = uniform( EPS, 10.0 );
42+
b = uniform( a + EPS, 10.0 );
4343
dist = new Uniform( a, b );
4444
if ( !( dist instanceof Uniform ) ) {
4545
bm.fail( 'should return a distribution instance' );
@@ -92,7 +92,7 @@ bench( pkg+'::set:a', function benchmark( bm ) {
9292

9393
bm.tic();
9494
for ( i = 0; i < bm.iterations; i++ ) {
95-
y = uniform( EPS, 100.0);
95+
y = uniform( EPS, 100.0 );
9696
dist.a = y;
9797
if ( dist.a !== y ) {
9898
bm.fail( 'should return set value' );
@@ -145,7 +145,7 @@ bench( pkg+'::set:b', function benchmark( bm ) {
145145

146146
bm.tic();
147147
for ( i = 0; i < bm.iterations; i++ ) {
148-
y = uniform(a + EPS, 100.0);
148+
y = uniform( a + EPS, 100.0 );
149149
dist.b = y;
150150
if ( dist.b !== y ) {
151151
bm.fail( 'should return set value' );
@@ -390,7 +390,7 @@ bench( pkg+':logcdf', function benchmark( bm ) {
390390

391391
bm.tic();
392392
for ( i = 0; i < bm.iterations; i++ ) {
393-
x = uniform( 0.0, 60.0);
393+
x = uniform( 0.0, 60.0 );
394394
y = dist.logcdf( x );
395395
if ( isnan( y ) ) {
396396
bm.fail( 'should not return NaN' );
@@ -502,7 +502,7 @@ bench( pkg+':quantile', function benchmark( bm ) {
502502

503503
bm.tic();
504504
for ( i = 0; i < bm.iterations; i++ ) {
505-
x = uniform( 0.0, 1.0);
505+
x = uniform( 0.0, 1.0 );
506506
y = dist.quantile( x );
507507
if ( isnan( y ) ) {
508508
bm.fail( 'should not return NaN' );

0 commit comments

Comments
 (0)