Skip to content

Commit e08bc5a

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent 191511b commit e08bc5a

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/levy/ctor/benchmark

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,12 @@ bench( pkg+':cdf', function benchmark( b ) {
396396
x = new Float64Array( len );
397397
dist = new Levy( mu, c );
398398
for ( i = 0; i < len; i++ ) {
399-
x[ i ] = uniform( -3.0, 6.0 );
399+
x[ i ] = uniform( -3.0, 3.0 );
400400
}
401401

402402
b.tic();
403403
for ( i = 0; i < b.iterations; i++ ) {
404-
y = dist.cdf( x[i % len] );
404+
y = dist.cdf( x[ i % len ] );
405405
if ( isnan( y ) ) {
406406
b.fail( 'should not return NaN' );
407407
}
@@ -429,7 +429,7 @@ bench( pkg+':logpdf', function benchmark( b ) {
429429
x = new Float64Array( len );
430430
dist = new Levy( mu, c );
431431
for ( i = 0; i < len; i++ ) {
432-
x[ i ] = uniform( -3.0, 6.0 );
432+
x[ i ] = uniform( -3.0, 3.0 );
433433
}
434434

435435
b.tic();
@@ -462,7 +462,7 @@ bench( pkg+':pdf', function benchmark( b ) {
462462
x = new Float64Array( len );
463463
dist = new Levy( mu, c );
464464
for ( i = 0; i < len; i++ ) {
465-
x[ i ] = uniform( -3.0, 6.0 );
465+
x[ i ] = uniform( -3.0, 3.0 );
466466
}
467467

468468
b.tic();

0 commit comments

Comments
 (0)