Skip to content

Commit 6f70f1b

Browse files
fix: changes in benchmark and test
1 parent d68d3c9 commit 6f70f1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/stats/base/dists/geometric/logpmf/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ bench( pkg, function benchmark( b ) {
4343
x = new Float64Array( len );
4444
p = new Float64Array( len );
4545
for ( i = 0; i < len; i++ ) {
46-
x[ i % len ] = round( randu()*40.0 );
47-
p[ i % len ] = ( randu()*1.0 ) + EPS;
46+
x[ i ] = round( randu()*40.0 );
47+
p[ i ] = ( randu()*1.0 ) + EPS;
4848
}
4949

5050
b.tic();

lib/node_modules/@stdlib/stats/base/dists/geometric/logpmf/benchmark/benchmark.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5252
x = new Float64Array( len );
5353
p = new Float64Array( len );
5454
for ( i = 0; i < len; i++ ) {
55-
x[ i % len ] = round( randu()*40.0 );
56-
p[ i % len ] = ( randu()*1.0 ) + EPS;
55+
x[ i ] = round( randu()*40.0 );
56+
p[ i ] = ( randu()*1.0 ) + EPS;
5757
}
5858

5959
b.tic();

0 commit comments

Comments
 (0)