Skip to content

Commit d291cde

Browse files
committed
check
1 parent e6c5993 commit d291cde

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ accumulator = incrnanprod();
3333
// For each simulated value, update the product...
3434
console.log( '\nValue\tProduct\n' );
3535
for ( i = 0; i < 100; i++ ) {
36-
v = ( bernoulli( 0.8 ) < 1 ) ? NaN : uniform( 0.0, 100.0 );
36+
v = ( bernoulli( 0.2 ) < 1 ) ? NaN : uniform( 0.0, 100.0 );
3737
prod = accumulator( v );
3838
console.log( '%d\t%d', v.toFixed( 4 ), ( prod === null ) ? NaN : prod.toFixed( 4 ) );
3939
}

lib/node_modules/@stdlib/stats/incr/nanprod/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ var incrprod = require( '@stdlib/stats/incr/prod' );
4848
* // returns 2.0
4949
*
5050
* prod = accumulator( NaN );
51-
* // returns NaN
51+
* // returns 2.0
5252
*
5353
* prod = accumulator( -5.0 );
54-
* // returns NaN
54+
* // returns -10.0
5555
*
5656
* prod = accumulator();
57-
* // returns NaN
57+
* // returns -10.0
5858
*/
5959
function incrnanprod() {
6060
var prod = incrprod();

0 commit comments

Comments
 (0)