MathPHP\Probability\Distribution\Continuous\Continuous::between PHP Method

between() public static method

P(between) = CDF($x₂) - CDF($x₁)
public static between ( number $x₁, number $x₂, $params ) : number
$x₁ number Lower bound
$x₂ number Upper bound
$params Remaining parameters for each distribution
return number
    public static function between($x₁, $x₂, ...$params)
    {
        $upper_area = static::CDF($x₂, ...$params);
        $lower_area = static::CDF($x₁, ...$params);
        return $upper_area - $lower_area;
    }