Skip to content

feat: add stats/incr/nanmidrange #6149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
lint
  • Loading branch information
jalajk3004 committed Mar 18, 2025
commit e0252d893dd9d9ada2ade9fd8cc42a178bb4f83e
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
for ( i = 0; i < 100; i++ ) {
v = (randu() < 0.1) ? NaN : randu() * 100.0;
midrange = accumulator( v );
console.log( '%d\t%s', v.toFixed( 4 ), midrange !== null ? midrange.toFixed( 4 ) : 'null' );
console.log( '%d\t%s', v.toFixed( 4 ), (midrange !== null ? midrange.toFixed( 4 ) : 'null') );

Check failure on line 38 in lib/node_modules/@stdlib/stats/incr/nanmidrange/examples/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

parentheses required around ternary conditions

Check failure on line 38 in lib/node_modules/@stdlib/stats/incr/nanmidrange/examples/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected negated condition
}

console.log( '\nFinal mid-range: %s\n', accumulator() !== null ? accumulator().toFixed( 4 ) : 'null' );
console.log( '\nFinal mid-range: %s\n', (accumulator() !== null ? accumulator().toFixed( 4 ) : 'null') );

Check failure on line 41 in lib/node_modules/@stdlib/stats/incr/nanmidrange/examples/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

parentheses required around ternary conditions

Check failure on line 41 in lib/node_modules/@stdlib/stats/incr/nanmidrange/examples/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected negated condition
Loading