public static function range(array $values) : float
    {
        if (empty($values)) {
            throw new InvalidArgumentException('Range is undefined for empty'
                . ' set.');
        }

        return (float) (max($values) - min($values));
    }
public static function range(array $values) : float
    {
        if (empty($values)) {
            throw new InvalidArgumentException('Range is undefined for empty'
                . ' set.');
        }

        return (float) (max($values) - min($values));
    }
public static function range ( array $ values ) : float { if ( empty ( $ values ) ) { throw new InvalidArgumentException ( 'Range is undefined for empty' . ' set.' ) ; } return ( float ) ( max ( $ values ) - min ( $ values ) ) ; }
Return the statistical range given by the maximum minus the minimum
of a set of values.

@param array $values
@throws \InvalidArgumentException
@return float
Return the statistical range given by the maximum minus the minimum of a set of values .