Skip to content

Commit 43fc0fb

Browse files
authored
Update README.md
Signed-off-by: Harsh <[email protected]>
1 parent 790003c commit 43fc0fb

File tree

1 file changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/stats/incr/nanrss

1 file changed

+5
-5
lines changed

lib/node_modules/@stdlib/stats/incr/nanrss/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ accumulator = incrnanrss();
117117
// For each simulated datum, update the residual sum of squares...
118118
for ( i = 0; i < 100; i++ ) {
119119
if ( randu() < 0.2 ) {
120-
v1 = NaN;
120+
v1 = NaN;
121121
v2 = NaN;
122-
} else {
123-
v1 = ( randu()*100.0 ) - 50.0;
124-
v2 = ( randu()*100.0 ) - 50.0;
125-
}
122+
} else {
123+
v1 = ( randu()*100.0 ) - 50.0;
124+
v2 = ( randu()*100.0 ) - 50.0;
125+
}
126126
accumulator( v1, v2 );
127127
}
128128
console.log( accumulator() );

0 commit comments

Comments
 (0)