Skip to content

Commit fcef799

Browse files
committed
[fix lint]
1 parent c7753b3 commit fcef799

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/node_modules/@stdlib/stats/incr/nanmrange/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ accumulator = incrnanmrange( 5 );
3232
// For each simulated datum, update the moving range...
3333
console.log( '\nValue\tRange\n' );
3434
for ( i = 0; i < 100; i++ ) {
35-
v = randu() > 0.2 ? NaN : randu() * 100.0;
35+
v = ( randu() > 0.2 ) ? NaN : randu() * 100.0;
3636
r = accumulator( v );
3737
console.log( '%d\t%d', v.toFixed( 4 ), (r === null) ? null : r.toFixed( 4 ) );
3838
}

lib/node_modules/@stdlib/stats/incr/nanmrange/test/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var tape = require( 'tape' );
2424
var isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' );
2525
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2626
var incrnanmrange = require( '@stdlib/stats/incr/nanmrange/lib' );
27+
var abs = require( '@stdlib/math/base/special/abs' );
2728

2829

2930
// TESTS //
@@ -406,7 +407,7 @@ tape( 'if provided NaN, the accumulator function ignores it and returns the prev
406407
if ( isnan( expected[ i ] ) ) {
407408
t.equal( isnan( v ), true, 'returns expected value for window '+i );
408409
} else if ( i === 2 ) {
409-
t.ok( Math.abs(v - expected[i]) < 0.01, 'returns expected value for window '+i );
410+
t.ok( abs(v - expected[i]) < 0.01, 'returns expected value for window '+i );
410411
} else {
411412
t.equal( v, expected[ i ], 'returns expected value for window '+i );
412413
}

0 commit comments

Comments
 (0)