function meanpn( N, x, strideX, offsetX ) {
	var xbuf;
	var get;
	var mu;
	var c;

	xbuf = x.data;
	get = x.accessors[ 0 ];

	if ( N === 1 || strideX === 0 ) {
		return get( xbuf, offsetX );
	}
	// Compute an estimate for the meanpn:
	mu = gsumpw( N, xbuf, strideX, offsetX ) / N;

	// Compute an error term:
	c = gapxsumpw( N, -mu, xbuf, strideX, offsetX ) / N;

	return mu + c;
}
Computes the arithmetic mean of a strided array using a two-pass error correction algorithm.

@private
@param {PositiveInteger} N - number of indexed elements
@param {Object} x - input array object
@param {integer} strideX - stride length
@param {NonNegativeInteger} offsetX - starting index
@returns {number} arithmetic mean

@example
var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
var arraylike2object = require( '@stdlib/array/base/arraylike2object' );

var x = toAccessorArray( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );

var v = meanpn( 4, arraylike2object( x ), 2, 1 );
// returns 1.25