function mediansorted( N, x, strideX, offsetX ) {
	var xbuf;
	var xget;
	var n;
	var m;

	// Cache references to array data:
	xbuf = x.data;

	// Cache references to element accessors:
	xget = x.accessors[ 0 ];

	if ( N <= 0 ) {
		return NaN;
	}
	n = N / 2;
	m = floor( n );
	if ( n === m ) {
		// Even number of elements...
		return ( xget( xbuf, offsetX+(m * strideX) ) + xget( xbuf, offsetX+((m-1) * strideX) ) ) / 2.0;
	}
	// Odd number of elements...
	return xget( xbuf, offsetX+(m * strideX) );
}
Computes the median value of a sorted strided array.

@private
@param {PositiveInteger} N - number of indexed elements
@param {Object} x - input array object
@param {Collection} x.data - input array data
@param {Array<Function>} x.accessors - array element accessors
@param {integer} strideX - strideX length
@param {NonNegativeInteger} offsetX - starting index
@returns {number} median value

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

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

var v = mediansorted( 4, arraylike2object( x ), 2, 1 );
// returns 0.0