Skip to content

Commit 3385774

Browse files
authored
Update README.md
Signed-off-by: Harsh <[email protected]>
1 parent e5f33c6 commit 3385774

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ accumulator = incrnanmape();
125125
// For each simulated datum, update the mean absolute percentage error...
126126
for ( i = 0; i < 100; i++ ) {
127127
if ( randu() < 0.2 ) {
128-
v1 = NaN;
129-
v2 = NaN;
130-
} else {
131-
v1 = ( randu()*100.0 ) + 50.0;
128+
v1 = NaN;
129+
v2 = NaN;
130+
} else {
131+
v1 = ( randu()*100.0 ) + 50.0;
132132
v2 = ( randu()*100.0 ) + 50.0;
133-
}
133+
}
134134
accumulator( v1, v2 );
135135
}
136136
console.log( accumulator() );

0 commit comments

Comments
 (0)