Skip to content

Commit 2d3c0d8

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

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ bench( pkg, function benchmark( b ) {
3636
var y;
3737
var i;
3838

39+
x = uniform( -10.0, 10.0 );
40+
min = uniform( -20.0, 0.0 );
41+
max = min + uniform( 0.0, 40.0 );
42+
3943
b.tic();
4044
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 );
4445
y = cdf( x, min, max );
4546
if ( isnan( y ) ) {
4647
b.fail( 'should not return NaN' );

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bench( pkg, function benchmark( b ) {
4242
max = new Float64Array( len );
4343
for ( i = 0; i < len; i++ ) {
4444
min[ i ] = uniform( 0.0, 10.0 );
45-
max[ i ] = uniform( 0.0, 10.0 ) + min[ i ];
45+
max[ i ] = uniform( min[ i ], min[ i ] + 10.0 );
4646
}
4747

4848
b.tic();

0 commit comments

Comments
 (0)