

'use strict';

// MODULES //

var nanmeanpn = require( '@stdlib/stats/base/nanmeanpn' );


// MAIN //

/**
* Computes the arithmetic mean of a strided array, ignoring `NaN` values.
*
* @param {PositiveInteger} N - number of indexed elements
* @param {NumericArray} x - input array
* @param {integer} stride - stride length
* @returns {number} arithmetic mean
*
* @example
* var x = [ 1.0, -2.0, NaN, 2.0 ];
* var N = x.length;
*
* var v = nanmean( N, x, 1 );
* // returns ~0.3333
*/
function nanmean( N, x, stride ) {
	return nanmeanpn( N, x, stride );
}


// EXPORTS //

module.exports = nanmean;
