public static function PDF($a, $b, $x) { if ($x < $a || $x > $b) { return 0; } return 1 / ($b - $a); }