build/modelscript.umd.js
function median(input) {
                if (!Array.isArray(input)) {
                    throw new Error('input must be an array');
                }

                if (input.length === 0) {
                    throw new Error('input must not be empty');
                }

                return medianQuickselect_min(input.slice());
            }
function median(input) {
                if (!Array.isArray(input)) {
                    throw new Error('input must be an array');
                }

                if (input.length === 0) {
                    throw new Error('input must not be empty');
                }

                return medianQuickselect_min(input.slice());
            }
function median ( input ) { if ( ! Array . isArray ( input ) ) { throw new Error ( 'input must be an array' ) ; } if ( input . length === 0 ) { throw new Error ( 'input must not be empty' ) ; } return medianQuickselect_min ( input . slice ( ) ) ; }
Computes the median of the given values
@param {Array<number>} input
@return {number}
Computes the median of the given values