Skip to content

Commit 0fff553

Browse files
committed
changes applied
1 parent 263c7ce commit 0fff553

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,23 +150,21 @@ bench( pkg+'::set:b', function benchmark( bm ) {
150150
var len;
151151
var mu;
152152
var b;
153-
var x;
154153
var y;
155154
var i;
156155

157156
mu = 2.0;
158157
b = 3.0;
159158
len = 100;
160-
x = new Float64Array( len );
159+
y = new Float64Array( len );
161160
dist = new Laplace( mu, b );
162161
for ( i = 0; i < len; i++ ) {
163-
x[ i ] = uniform( EPS, 100.0 );
162+
y[ i ] = uniform( EPS, 100.0 );
164163
}
165164

166165
bm.tic();
167166
for ( i = 0; i < bm.iterations; i++ ) {
168167
dist.b = y[ i % len ];
169-
dist.b = y;
170168
if ( dist.b !== y ) {
171169
bm.fail( 'should return set value' );
172170
}

lib/node_modules/@stdlib/stats/base/dists/laplace/median/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bench( pkg, function benchmark( b ) {
4848

4949
b.tic();
5050
for ( i = 0; i < b.iterations; i++ ) {
51-
y = median( mu[ i % len], scale[ i % len] );
51+
y = median( mu[ i % len ], scale[ i % len ] );
5252
if ( isnan( y ) ) {
5353
b.fail( 'should not return NaN' );
5454
}

0 commit comments

Comments
 (0)