MathPHP\Statistics\Descriptive::interquartileRange PHP Method

interquartileRange() public static method

Difference between the upper and lower quartiles. https://en.wikipedia.org/wiki/Interquartile_range IQR = Q₃ - Q₁
public static interquartileRange ( array $numbers, string $method = 'exclusive' ) : number
$numbers array
$method string What quartile method to use (optional - default: exclusive)
return number
    public static function interquartileRange(array $numbers, string $method = 'exclusive')
    {
        return self::quartiles($numbers, $method)['IQR'];
    }