lib/index.js
function ekurtosis( p, options ) {
	/* jshint newcap:false */
	var opts = {},
		ctor,
		err,
		out,
		dt,
		d;

	if ( isNumber( p ) || isnan( p ) ) {
		return ekurtosis1( p );
	}
	if ( arguments.length > 1 ) {
		err = validate( opts, options );
		if ( err ) {
			throw err;
		}
	}
	if ( isMatrixLike( p ) ) {
		if ( opts.copy !== false ) {
			dt = opts.dtype || 'float64';
			ctor = ctors( dt );
			if ( ctor === null ) {
				throw new Error( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + dt + '`.' );
			}
			// Create an output matrix:
			d = new ctor( p.length );
			out = matrix( d, p.shape, dt );
		} else {
			out = p;
		}
		return ekurtosis5( out, p );
	}
	if ( isTypedArrayLike( p ) ) {
		if ( opts.copy === false ) {
			out = p;
		} else {
			dt = opts.dtype || 'float64';
			ctor = ctors( dt );
			if ( ctor === null ) {
				throw new Error( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + dt + '`.' );
			}
			out = new ctor( p.length );
		}
		return ekurtosis6( out, p );
	}
	if ( isArrayLike( p ) ) {
		// Handle deepset first...
		if ( opts.path ) {
			opts.sep = opts.sep || '.';
			return ekurtosis4( p, opts.path, opts.sep );
		}
		// Handle regular and accessor arrays next...
		if ( opts.copy === false ) {
			out = p;
		}
		else if ( opts.dtype ) {
			ctor = ctors( opts.dtype );
			if ( ctor === null ) {
				throw new TypeError( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + opts.dtype + '`.' );
			}
			out = new ctor( p.length );
		}
		else {
			out = new Array( p.length );
		}
		if ( opts.accessor ) {
			return ekurtosis3( out, p, opts.accessor );
		}
		return ekurtosis2( out, p );
	}
	return NaN;
}
function ekurtosis( p, options ) {
	/* jshint newcap:false */
	var opts = {},
		ctor,
		err,
		out,
		dt,
		d;

	if ( isNumber( p ) || isnan( p ) ) {
		return ekurtosis1( p );
	}
	if ( arguments.length > 1 ) {
		err = validate( opts, options );
		if ( err ) {
			throw err;
		}
	}
	if ( isMatrixLike( p ) ) {
		if ( opts.copy !== false ) {
			dt = opts.dtype || 'float64';
			ctor = ctors( dt );
			if ( ctor === null ) {
				throw new Error( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + dt + '`.' );
			}
			// Create an output matrix:
			d = new ctor( p.length );
			out = matrix( d, p.shape, dt );
		} else {
			out = p;
		}
		return ekurtosis5( out, p );
	}
	if ( isTypedArrayLike( p ) ) {
		if ( opts.copy === false ) {
			out = p;
		} else {
			dt = opts.dtype || 'float64';
			ctor = ctors( dt );
			if ( ctor === null ) {
				throw new Error( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + dt + '`.' );
			}
			out = new ctor( p.length );
		}
		return ekurtosis6( out, p );
	}
	if ( isArrayLike( p ) ) {
		// Handle deepset first...
		if ( opts.path ) {
			opts.sep = opts.sep || '.';
			return ekurtosis4( p, opts.path, opts.sep );
		}
		// Handle regular and accessor arrays next...
		if ( opts.copy === false ) {
			out = p;
		}
		else if ( opts.dtype ) {
			ctor = ctors( opts.dtype );
			if ( ctor === null ) {
				throw new TypeError( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + opts.dtype + '`.' );
			}
			out = new ctor( p.length );
		}
		else {
			out = new Array( p.length );
		}
		if ( opts.accessor ) {
			return ekurtosis3( out, p, opts.accessor );
		}
		return ekurtosis2( out, p );
	}
	return NaN;
}
function ekurtosis ( p , options ) { /* jshint newcap:false */ var opts = { } , ctor , err , out , dt , d ; if ( isNumber ( p ) || isnan ( p ) ) { return ekurtosis1 ( p ) ; } if ( arguments . length > 1 ) { err = validate ( opts , options ) ; if ( err ) { throw err ; } } if ( isMatrixLike ( p ) ) { if ( opts . copy !== false ) { dt = opts . dtype || 'float64' ; ctor = ctors ( dt ) ; if ( ctor === null ) { throw new Error ( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + dt + '`.' ) ; } // Create an output matrix: d = new ctor ( p . length ) ; out = matrix ( d , p . shape , dt ) ; } else { out = p ; } return ekurtosis5 ( out , p ) ; } if ( isTypedArrayLike ( p ) ) { if ( opts . copy === false ) { out = p ; } else { dt = opts . dtype || 'float64' ; ctor = ctors ( dt ) ; if ( ctor === null ) { throw new Error ( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + dt + '`.' ) ; } out = new ctor ( p . length ) ; } return ekurtosis6 ( out , p ) ; } if ( isArrayLike ( p ) ) { // Handle deepset first... if ( opts . path ) { opts . sep = opts . sep || '.' ; return ekurtosis4 ( p , opts . path , opts . sep ) ; } // Handle regular and accessor arrays next... if ( opts . copy === false ) { out = p ; } else if ( opts . dtype ) { ctor = ctors ( opts . dtype ) ; if ( ctor === null ) { throw new TypeError ( 'ekurtosis()::invalid option. Data type option does not have a corresponding array constructor. Option: `' + opts . dtype + '`.' ) ; } out = new ctor ( p . length ) ; } else { out = new Array ( p . length ) ; } if ( opts . accessor ) { return ekurtosis3 ( out , p , opts . accessor ) ; } return ekurtosis2 ( out , p ) ; } return NaN ; }
EKURTOSIS // 
FUNCTION: ekurtosis( p[, opts] )
Computes the distribution ekurtosis.

@param {Number|Number[]|Array|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array|Matrix} p - input value
@param {Object} [opts] - function options
@param {Boolean} [opts.copy=true] - boolean indicating if the function should return a new data structure
@param {Function} [opts.accessor] - accessor function for accessing array values
@param {String} [opts.path] - deep get/set key path
@param {String} [opts.sep="."] - deep get/set key path separator
@param {String} [opts.dtype="float64"] - output data type
@returns {Number|Number[]|Array|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array|Matrix} distribution ekurtosis(s)
EKURTOSIS // FUNCTION : ekurtosis ( p [ opts ] ) Computes the distribution ekurtosis .