Skip to content

Commit f39415c

Browse files
committed
fix: run_affected_examples / Run changed examples (pull_request) and lint_changed_files / Lint Changed Files (pull_request)
1 parent 4ae8a4b commit f39415c

File tree

6 files changed

+44
-44
lines changed

6 files changed

+44
-44
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ If provided an input value `x`, the accumulator function updates and returns the
9090
var incrnanmmeanvar = require( '@stdlib/stats/incr/nanmmeanvar' );
9191
var accumulator = incrnanmmeanvar( 3 );
9292
var out = accumulator();
93+
// => null
9394

9495
// Fill the window (no NaNs yet)...
9596
out = accumulator( 2.0 ); // [2.0]
@@ -138,6 +139,7 @@ out = accumulator();
138139
## Examples
139140

140141
<!-- eslint no-undef: "error" -->
142+
141143
```javascript
142144
var randu = require( '@stdlib/random/base/randu' );
143145
var Float64Array = require( '@stdlib/array/float64' );
@@ -176,7 +178,6 @@ for ( i = 0; i < N; i++ ) {
176178
// Simulate streaming data updates:
177179
for ( i = 0; i < 100; i++ ) {
178180
for ( j = 0; j < N; j++ ) {
179-
180181
// Generate random values, but occasionally insert NaN.
181182
// Any NaNs are ignored by the accumulator.
182183
v = ( randu() > 0.1 ) ? randu() * 100 : NaN;

lib/node_modules/@stdlib/stats/incr/nanmmeanvar/docs/repl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
values. If not provided a value, the accumulator function returns the
1111
current moving accumulated values.
1212

13-
NaN values are ignored
14-
and do not affect the accumulator state.
13+
NaN values are ignored and do not affect the accumulator state.
1514

16-
Until the window contains at least one valid (non-NaN) value, the
15+
Until the window contains at least one valid (non-NaN) value, the
1716
accumulator returns `null`.
1817
If the window contains only one valid value, the sample
1918
variance is `0.0`.

lib/node_modules/@stdlib/stats/incr/nanmmeanvar/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type accumulator = ( x?: number ) => ArrayLike<number> | null;
4848
* @param window - window size
4949
* @throws window size must be a positive integer
5050
* @returns accumulator function
51-
*
51+
*
5252
*/
5353
declare function incrnanmmeanvar( out: ArrayLike<number>, window: number ): accumulator;
5454

@@ -64,7 +64,7 @@ declare function incrnanmmeanvar( out: ArrayLike<number>, window: number ): accu
6464
* @param window - window size
6565
* @throws window size must be a positive integer
6666
* @returns accumulator function
67-
*
67+
*
6868
* @example
6969
* var incrnanmmeanvar = require( '@stdlib/stats/incr/nanmmeanvar' );
7070
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ for ( i = 0; i < data.length; i++ ) {
3535
console.log( 'x: %d -> mean: %d, variance: %d', data[ i ], out ? out[0] : null, out ? out[1] : null );
3636
}
3737

38-
console.log( '\nCurrent values:', acc() );
38+
console.log( '\nCurrent values:', acc() );

lib/node_modules/@stdlib/stats/incr/nanmmeanvar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@
7777
"window",
7878
"moving"
7979
]
80-
}
80+
}

lib/node_modules/@stdlib/stats/incr/nanmmeanvar/test/test.js

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -296,45 +296,45 @@ tape( 'if provided `NaN`, the accumulator skips the value and returns the previo
296296

297297
data = [
298298
NaN,
299-
3.14,
300-
3.14,
301-
NaN,
302-
3.14,
303-
3.14,
304-
3.14,
305-
NaN,
306-
3.14,
307-
3.14,
308-
3.14,
309-
NaN,
310-
3.14,
311-
3.14,
312-
NaN,
313-
NaN,
314-
NaN,
315-
NaN,
316-
3.14
299+
3.14,
300+
3.14,
301+
NaN,
302+
3.14,
303+
3.14,
304+
3.14,
305+
NaN,
306+
3.14,
307+
3.14,
308+
3.14,
309+
NaN,
310+
3.14,
311+
3.14,
312+
NaN,
313+
NaN,
314+
NaN,
315+
NaN,
316+
3.14
317317
];
318318
expected = [
319319
null,
320-
[ 3.14, 0.0 ],
321-
[ 3.14, 0.0 ],
322-
[ 3.14, 0.0 ],
323-
[ 3.14, 0.0 ],
324-
[ 3.14, 0.0 ],
325-
[ 3.14, 0.0 ],
326-
[ 3.14, 0.0 ],
327-
[ 3.14, 0.0 ],
328-
[ 3.14, 0.0 ],
329-
[ 3.14, 0.0 ],
330-
[ 3.14, 0.0 ],
331-
[ 3.14, 0.0 ],
332-
[ 3.14, 0.0 ],
333-
[ 3.14, 0.0 ],
334-
[ 3.14, 0.0 ],
335-
[ 3.14, 0.0 ],
336-
[ 3.14, 0.0 ],
337-
[ 3.14, 0.0 ]
320+
[ 3.14, 0.0 ],
321+
[ 3.14, 0.0 ],
322+
[ 3.14, 0.0 ],
323+
[ 3.14, 0.0 ],
324+
[ 3.14, 0.0 ],
325+
[ 3.14, 0.0 ],
326+
[ 3.14, 0.0 ],
327+
[ 3.14, 0.0 ],
328+
[ 3.14, 0.0 ],
329+
[ 3.14, 0.0 ],
330+
[ 3.14, 0.0 ],
331+
[ 3.14, 0.0 ],
332+
[ 3.14, 0.0 ],
333+
[ 3.14, 0.0 ],
334+
[ 3.14, 0.0 ],
335+
[ 3.14, 0.0 ],
336+
[ 3.14, 0.0 ],
337+
[ 3.14, 0.0 ]
338338
];
339339
for ( i = 0; i < data.length; i++ ) {
340340
v = acc( data[ i ] );

0 commit comments

Comments
 (0)