diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/README.md b/lib/node_modules/@stdlib/stats/incr/nanmmean/README.md
new file mode 100644
index 000000000000..3190f2692f41
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/README.md
@@ -0,0 +1,161 @@
+
+
+# incrnanmmean
+
+> Compute a moving [arithmetic mean][arithmetic-mean] incrementally, ignoring `NaN` values.
+
+
+
+For a window of size `W`, the [arithmetic mean][arithmetic-mean] is defined as
+
+
+
+```math
+\bar{x} = \frac{1}{W} \sum_{i=0}^{W-1} x_i
+```
+
+
+
+
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var incrnanmmean = require( '@stdlib/stats/incr/nanmmean' );
+```
+
+#### incrnanmmean( window )
+
+Returns an accumulator `function` which incrementally computes a moving [arithmetic mean][arithmetic-mean], ignoring `NaN` values. The `window` parameter defines the number of values over which to compute the moving mean.
+
+```javascript
+var accumulator = incrnanmmean( 3 );
+```
+
+#### accumulator( \[x] )
+
+If provided an input value `x`, the accumulator function returns an updated mean. If not provided an input value `x`, the accumulator function returns the current mean.
+
+```javascript
+var accumulator = incrnanmmean( 3 );
+
+var mu = accumulator();
+// returns null
+
+// Fill the window...
+mu = accumulator( 2.0 ); // [2.0]
+// returns 2.0
+
+mu = accumulator( 1.0 ); // [2.0, 1.0]
+// returns 1.5
+
+mu = accumulator( 3.0 ); // [2.0, 1.0, 3.0]
+// returns 2.0
+
+// Window begins sliding...
+mu = accumulator( -7.0 ); // [1.0, 3.0, -7.0]
+// returns -1.0
+
+mu = accumulator( NaN ); // [1.0, 3.0, -7.0]
+// returns -1.0
+
+mu = accumulator( -5.0 ); // [3.0, -7.0, -5.0]
+// returns -3.0
+
+mu = accumulator();
+// returns -3.0
+```
+
+
+
+
+
+
+
+## Notes
+
+- Input values are **not** type checked. If non-numeric inputs are possible, you are advised to type check and handle accordingly **before** passing the value to the accumulator function.
+- As `W` values are needed to fill the window buffer, the first `W-1` returned values are calculated from smaller sample sizes. Until the window is full, each returned value is calculated from all provided values.
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var uniform = require( '@stdlib/random/base/uniform' );
+var bernoulli = require( '@stdlib/random/base/bernoulli' );
+var incrnanmmean = require( '@stdlib/stats/incr/nanmmean' );
+
+var accumulator;
+var v;
+var i;
+
+// Initialize an accumulator:
+accumulator = incrnanmmean( 5 );
+
+// For each simulated datum, update the moving mean...
+for ( i = 0; i < 100; i++ ) {
+ v = ( bernoulli( 0.8 ) < 1 ) ? NaN : uniform( 0.0, 100.0 );
+ accumulator( v );
+}
+console.log( accumulator() );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[arithmetic-mean]: https://en.wikipedia.org/wiki/Arithmetic_mean
+
+
+
+
+
+
+
+
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/incr/nanmmean/benchmark/benchmark.js
new file mode 100644
index 000000000000..d364403a72c5
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/benchmark/benchmark.js
@@ -0,0 +1,69 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var bench = require( '@stdlib/bench' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var incrnanmmean = require( './../lib' );
+
+
+// MAIN //
+
+bench( pkg, function benchmark( b ) {
+ var f;
+ var i;
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ f = incrnanmmean( (i%5)+1 );
+ if ( typeof f !== 'function' ) {
+ b.fail( 'should return a function' );
+ }
+ }
+ b.toc();
+ if ( typeof f !== 'function' ) {
+ b.fail( 'should return a function' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+});
+
+bench( format( '%s::accumulator', pkg ), function benchmark( b ) {
+ var acc;
+ var v;
+ var i;
+
+ acc = incrnanmmean( 5 );
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ v = acc( i );
+ if ( v !== v ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( v !== v ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+});
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/img/equation_arithmetic_mean.svg b/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/img/equation_arithmetic_mean.svg
new file mode 100644
index 000000000000..1a89a2bfb996
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/img/equation_arithmetic_mean.svg
@@ -0,0 +1,43 @@
+
\ No newline at end of file
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/repl.txt b/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/repl.txt
new file mode 100644
index 000000000000..e6060ed3a9ef
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/repl.txt
@@ -0,0 +1,49 @@
+
+{{alias}}( W )
+ Returns an accumulator function which incrementally computes a moving
+ arithmetic mean, ignoring `NaN` values.
+
+ The `W` parameter defines the number of values over which to compute the
+ moving mean.
+
+ If provided a value, the accumulator function returns an updated moving
+ mean. If not provided a value, the accumulator function returns the current
+ moving mean.
+
+ As `W` values are needed to fill the window buffer, the first `W-1` returned
+ values are calculated from smaller sample sizes. Until the window is full,
+ each returned value is calculated from all provided values.
+
+ Parameters
+ ----------
+ W: integer
+ Window size.
+
+ Returns
+ -------
+ acc: Function
+ Accumulator function.
+
+ Examples
+ --------
+ > var accumulator = {{alias}}( 3 );
+ > var mu = accumulator()
+ null
+ > mu = accumulator( 2.0 )
+ 2.0
+ > mu = accumulator( -5.0 )
+ -1.5
+ > mu = accumulator( NaN )
+ -1.5
+ > mu = accumulator( 3.0 )
+ 0.0
+ > mu = accumulator( 5.0 )
+ 1.0
+ > mu = accumulator( NaN )
+ 1.0
+ > mu = accumulator()
+ 1.0
+
+ See Also
+ --------
+
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/types/index.d.ts
new file mode 100644
index 000000000000..146cce3794e4
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/types/index.d.ts
@@ -0,0 +1,75 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+// TypeScript Version: 4.1
+
+///
+
+/**
+* If provided a value, returns an updated arithmetic mean; otherwise, returns the current arithmetic mean.
+*
+* @param x - value
+* @returns arithmetic mean
+*/
+type accumulator = ( x?: number ) => number | null;
+
+/**
+* Returns an accumulator function which incrementally computes a moving arithmetic mean, ignoring `NaN` values.
+*
+* ## Notes
+*
+* - The `W` parameter defines the number of values over which to compute the moving mean.
+* - As `W` values are needed to fill the window buffer, the first `W-1` returned values are calculated from smaller sample sizes. Until the window is full, each returned value is calculated from all provided values.
+*
+* @param W - window size
+* @throws must provide a positive integer
+* @returns accumulator function
+*
+* @example
+* var accumulator = incrnanmmean( 3 );
+*
+* var mu = accumulator();
+* // returns null
+*
+* mu = accumulator( 2.0 );
+* // returns 2.0
+*
+* mu = accumulator( -5.0 );
+* // returns -1.5
+*
+* mu = accumulator( NaN );
+* // returns -1.5
+*
+* mu = accumulator( 3.0 );
+* // returns 0.0
+*
+* mu = accumulator( 5.0 );
+* // returns 1.0
+*
+* mu = accumulator( NaN );
+* // returns 1.0
+*
+* mu = accumulator();
+* // returns 1.0
+*/
+declare function incrnanmmean( W: number ): accumulator;
+
+
+// EXPORTS //
+
+export = incrnanmmean;
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/types/test.ts b/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/types/test.ts
new file mode 100644
index 000000000000..ebb4a7699a70
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/docs/types/test.ts
@@ -0,0 +1,66 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import incrnanmmean = require( './index' );
+
+
+// TESTS //
+
+// The function returns an accumulator function...
+{
+ incrnanmmean( 3 ); // $ExpectType accumulator
+}
+
+// The compiler throws an error if the function is provided an argument that is not a number...
+{
+ incrnanmmean( '5' ); // $ExpectError
+ incrnanmmean( true ); // $ExpectError
+ incrnanmmean( false ); // $ExpectError
+ incrnanmmean( null ); // $ExpectError
+ incrnanmmean( undefined ); // $ExpectError
+ incrnanmmean( [] ); // $ExpectError
+ incrnanmmean( {} ); // $ExpectError
+ incrnanmmean( ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an invalid number of arguments...
+{
+ incrnanmmean(); // $ExpectError
+ incrnanmmean( 2, 5 ); // $ExpectError
+}
+
+// The function returns an accumulator function which returns an accumulated result...
+{
+ const acc = incrnanmmean( 3 );
+
+ acc(); // $ExpectType number | null
+ acc( 3.14 ); // $ExpectType number | null
+}
+
+// The compiler throws an error if the returned accumulator function is provided invalid arguments...
+{
+ const acc = incrnanmmean( 3 );
+
+ acc( '5' ); // $ExpectError
+ acc( true ); // $ExpectError
+ acc( false ); // $ExpectError
+ acc( null ); // $ExpectError
+ acc( [] ); // $ExpectError
+ acc( {} ); // $ExpectError
+ acc( ( x: number ): number => x ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/examples/index.js b/lib/node_modules/@stdlib/stats/incr/nanmmean/examples/index.js
new file mode 100644
index 000000000000..517931d9bc99
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/examples/index.js
@@ -0,0 +1,39 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+var uniform = require( '@stdlib/random/base/uniform' );
+var bernoulli = require( '@stdlib/random/base/bernoulli' );
+var incrnanmmean = require( './../lib' );
+
+var accumulator;
+var mu;
+var v;
+var i;
+
+// Initialize an accumulator:
+accumulator = incrnanmmean( 5 );
+
+// For each simulated datum, update the moving mean...
+console.log( '\nValue\tMean\n' );
+for ( i = 0; i < 100; i++ ) {
+ v = ( bernoulli( 0.8 ) < 1 ) ? NaN : uniform( 0.0, 100.0 );
+ mu = accumulator( v );
+ console.log( '%s\t%s', v.toFixed( 4 ), ( mu === null ) ? NaN : mu.toFixed( 4 ) );
+}
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/lib/index.js b/lib/node_modules/@stdlib/stats/incr/nanmmean/lib/index.js
new file mode 100644
index 000000000000..96871322a682
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/lib/index.js
@@ -0,0 +1,63 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+/**
+* Compute a moving arithmetic mean incrementally, ignoring `NaN` values.
+*
+* @module @stdlib/stats/incr/nanmmean
+*
+* @example
+* var incrnanmmean = require( '@stdlib/stats/incr/nanmmean' );
+*
+* var accumulator = incrnanmmean( 3 );
+*
+* var mu = accumulator();
+* // returns null
+*
+* mu = accumulator( 2.0 );
+* // returns 2.0
+*
+* mu = accumulator( -5.0 );
+* // returns -1.5
+*
+* mu = accumulator( NaN );
+* // returns -1.5
+*
+* mu = accumulator( 3.0 );
+* // returns 0.0
+*
+* mu = accumulator( 5.0 );
+* // returns 1.0
+*
+* mu = accumulator( NaN );
+* // returns 1.0
+*
+* mu = accumulator();
+* // returns 1.0
+*/
+
+// MODULES //
+
+var main = require( './main.js' );
+
+
+// EXPORTS //
+
+module.exports = main;
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/lib/main.js b/lib/node_modules/@stdlib/stats/incr/nanmmean/lib/main.js
new file mode 100644
index 000000000000..6c3f5a2c3d39
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/lib/main.js
@@ -0,0 +1,85 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var incrmmean = require( '@stdlib/stats/incr/mmean' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+
+
+// MAIN //
+
+/**
+* Returns an accumulator function which incrementally computes a moving arithmetic mean, ignoring `NaN` values.
+*
+* @param {PositiveInteger} W - window size
+* @throws {TypeError} must provide a positive integer
+* @returns {Function} accumulator function
+*
+* @example
+* var accumulator = incrnanmmean( 3 );
+*
+* var mu = accumulator();
+* // returns null
+*
+* mu = accumulator( 2.0 );
+* // returns 2.0
+*
+* mu = accumulator( -5.0 );
+* // returns -1.5
+*
+* mu = accumulator( NaN );
+* // returns -1.5
+*
+* mu = accumulator( 3.0 );
+* // returns 0.0
+*
+* mu = accumulator( 5.0 );
+* // returns 1.0
+*
+* mu = accumulator( NaN );
+* // returns 1.0
+*
+* mu = accumulator();
+* // returns 1.0
+*/
+function incrnanmmean( W ) {
+ var mmean = incrmmean( W );
+ return accumulator;
+
+ /**
+ * If provided a value, the accumulator function returns an updated mean. If not provided a value, the accumulator function returns the current mean.
+ *
+ * @private
+ * @param {number} [x] - input value
+ * @returns {(number|null)} mean or null
+ */
+ function accumulator( x ) {
+ if ( arguments.length === 0 || isnan( x ) ) {
+ return mmean();
+ }
+ return mmean( x );
+ }
+}
+
+
+// EXPORTS //
+
+module.exports = incrnanmmean;
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/package.json b/lib/node_modules/@stdlib/stats/incr/nanmmean/package.json
new file mode 100644
index 000000000000..6a3d32a383cc
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/package.json
@@ -0,0 +1,73 @@
+{
+ "name": "@stdlib/stats/incr/nanmmean",
+ "version": "0.0.0",
+ "description": "Compute a moving arithmetic mean incrementally, ignoring NaN values.",
+ "license": "Apache-2.0",
+ "author": {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ },
+ "contributors": [
+ {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ }
+ ],
+ "main": "./lib",
+ "directories": {
+ "benchmark": "./benchmark",
+ "doc": "./docs",
+ "example": "./examples",
+ "lib": "./lib",
+ "test": "./test"
+ },
+ "types": "./docs/types",
+ "scripts": {},
+ "homepage": "https://github.com/stdlib-js/stdlib",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stdlib-js/stdlib.git"
+ },
+ "bugs": {
+ "url": "https://github.com/stdlib-js/stdlib/issues"
+ },
+ "dependencies": {},
+ "devDependencies": {},
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "stdmath",
+ "statistics",
+ "stats",
+ "mathematics",
+ "math",
+ "average",
+ "avg",
+ "mean",
+ "arithmetic mean",
+ "central tendency",
+ "incremental",
+ "accumulator",
+ "moving mean",
+ "moving average",
+ "sliding window",
+ "sliding",
+ "nan",
+ "window",
+ "moving"
+ ]
+}
diff --git a/lib/node_modules/@stdlib/stats/incr/nanmmean/test/test.js b/lib/node_modules/@stdlib/stats/incr/nanmmean/test/test.js
new file mode 100644
index 000000000000..c3dbcda193a0
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/incr/nanmmean/test/test.js
@@ -0,0 +1,130 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var incrnanmmean = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof incrnanmmean, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function throws an error if not provided a positive integer', function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ '5',
+ -5.0,
+ 0.0,
+ 3.14,
+ true,
+ null,
+ void 0,
+ NaN,
+ [],
+ {},
+ function noop() {}
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ incrnanmmean( value );
+ };
+ }
+});
+
+tape( 'the function returns an accumulator function', function test( t ) {
+ t.strictEqual( typeof incrnanmmean( 3 ), 'function', 'returns a function' );
+ t.end();
+});
+
+tape( 'the accumulator function computes a moving arithmetic mean incrementally', function test( t ) {
+ var expected;
+ var actual;
+ var data;
+ var acc;
+ var N;
+ var i;
+
+ data = [ 2.0, 3.0, 2.0, NaN, 4.0, 3.0, 4.0 ];
+ N = data.length;
+
+ acc = incrnanmmean( 3 );
+
+ actual = [];
+ for ( i = 0; i < N; i++ ) {
+ actual.push( acc( data[ i ] ) );
+ }
+ expected = [ 2.0, 2.5, 7.0/3.0, 7.0/3.0, 3.0, 3.0, 11.0/3.0 ];
+
+ t.deepEqual( actual, expected, 'returns expected incremental results' );
+ t.end();
+});
+
+tape( 'if not provided an input value, the accumulator function returns the current mean', function test( t ) {
+ var data;
+ var acc;
+ var i;
+
+ data = [ 2.0, 3.0, NaN, 5.0 ];
+ acc = incrnanmmean( 2 );
+ for ( i = 0; i < data.length; i++ ) {
+ acc( data[ i ] );
+ }
+ t.strictEqual( acc(), 4.0, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if data has yet to be provided, the accumulator function returns `null`', function test( t ) {
+ var acc = incrnanmmean( 3 );
+ t.strictEqual( acc(), null, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if only NaN values have been provided, the accumulator function returns `null`', function test( t ) {
+ var acc = incrnanmmean( 3 );
+ acc( NaN );
+ acc( NaN );
+ acc( NaN );
+ t.strictEqual( acc(), null, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided NaN, the accumulator function ignores it and returns the previous result', function test( t ) {
+ var acc = incrnanmmean( 3 );
+ t.strictEqual( acc( NaN ), null, 'returns expected value' );
+ t.strictEqual( acc( 2.0 ), 2.0, 'returns expected value' );
+ t.strictEqual( acc( NaN ), 2.0, 'returns expected value' );
+ t.strictEqual( acc( NaN ), 2.0, 'returns expected value' );
+ t.strictEqual( acc( 4.0 ), 3.0, 'returns expected value' );
+ t.end();
+});