MathPHP\Probability\Distribution\Continuous\Uniform::mean PHP Method

mean() public static method

a + b μ = ----- 2
public static mean ( number $a, number $b ) : number
$a number lower boundary of the distribution
$b number upper boundary of the distribution
return number
    public static function mean($a, $b)
    {
        return ($a + $b) / 2;
    }