Skip to content

Commit 3dc31a3

Browse files
committed
Auto-generated commit
1 parent 9ccf026 commit 3dc31a3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -38662,6 +38662,7 @@ A total of 51 people contributed to this release. Thank you to the following con
3866238662

3866338663
<details>
3866438664

38665+
- [`a567912`](https://github.com/stdlib-js/stdlib/commit/a567912175989cd5cef181056c8d41c8678c0087) - **docs:** fix example _(by Athan Reines)_
3866538666
- [`2c98a80`](https://github.com/stdlib-js/stdlib/commit/2c98a808f9b2896852452a74a21ddb5da775ffd6) - **feat:** add `stats/incr/nanstdev` [(#5798)](https://github.com/stdlib-js/stdlib/pull/5798) _(by NirvedMishra, Athan Reines, stdlib-bot)_
3866638667
- [`89c41ab`](https://github.com/stdlib-js/stdlib/commit/89c41ab21cf911bed3a67fbccebe6b129ddfc70a) - **test:** clean-up test messages and resolve lint errors _(by Athan Reines)_
3866738668
- [`f0df313`](https://github.com/stdlib-js/stdlib/commit/f0df313876ca0590d2a919d98c4411e4e51d50f0) - **feat:** added accessor protocol support to `stats/base/meanpn` [(#5908)](https://github.com/stdlib-js/stdlib/pull/5908) _(by Dhruvil Mehta, Athan Reines)_

incr/nanstdev/examples/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ var accumulator = incrnanstdev();
2828
// For each simulated datum, update the corrected sample standard deviation...
2929
console.log( '\nValue\tSigma\n' );
3030
var v;
31+
var s;
3132
var i;
3233
for ( i = 0; i < 100; i++ ) {
3334
v = ( bernoulli( 0.8 ) < 1 ) ? NaN : uniform( 0.0, 100.0 );
34-
console.log( '%d\t%d', v.toFixed( 4 ), accumulator( v ).toFixed( 4 ) );
35+
s = accumulator( v );
36+
console.log( '%d\t%d', v.toFixed( 4 ), ( s === null ) ? NaN : s.toFixed( 4 ) );
3537
}
3638
console.log( '\nFinal standard deviation: %d\n', accumulator() );

0 commit comments

Comments
 (0)