Skip to content

Commit 82a6a5c

Browse files
authored
fix: benchmark.native.js
Signed-off-by: Shabareesh Shetty <[email protected]>
1 parent 7f54c3a commit 82a6a5c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/kurtosis/benchmark/benchmark.native.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@ var opts = {
4242

4343
bench( pkg+'::native', opts, function benchmark( b ) {
4444
var len;
45-
var a;
46-
var x;
45+
var shape1;
46+
var shape2;
4747
var y;
4848
var i;
4949

5050
len = 100;
51-
a = new Float64Array( len );
52-
x = new Float64Array( len );
51+
shape1 = new Float64Array( len );
52+
shape2 = new Float64Array( len );
5353
for ( i = 0; i < len; i++ ) {
54-
a[ i ] = ( randu() * 100.0 ) - 50.0;
55-
x[ i ] = ( randu() * 20.0 ) + EPS;
54+
shape1[ i ] = ( randu() * 10.0 ) + EPS;
55+
shape2[ i ] = ( randu() * 10.0 ) + EPS;
5656
}
5757

5858
b.tic();
5959
for ( i = 0; i < b.iterations; i++ ) {
60-
y = kurtosis( a[ i % len ], x[ i % len ] );
60+
y = kurtosis( shape1[ i % len ], shape2[ i % len ] );
6161
if ( isnan( y ) ) {
6262
b.fail( 'should not return NaN' );
6363
}

0 commit comments

Comments
 (0)