src/Probability/Distribution/Discrete/Uniform.php
public function median(): float
    {
        $a = $this->a;
        $b = $this->b;

        return ($a + $b) / 2;
    }
public function median(): float
    {
        $a = $this->a;
        $b = $this->b;

        return ($a + $b) / 2;
    }
public function median ( ) : float { $ a = $ this -> a ; $ b = $ this -> b ; return ( $ a + $ b ) / 2 ; }
Median of the distribution

a + b
μ = -----
2

@return float
Median of the distribution