Extends the class {@link DiscreteDistributionInt} for the
Bernoullidistribution with parameter
p, where
0 <= p <= 1. Its mass function is given by
| f (x) = | 1 - p, | if x = 0; |
| f (x) = | p, | if x = 1; |
| f (x) = | 0, | otherwise. |
Its distribution function is
| F(x) = | 0, | if x < 0; |
| F(x) = | 1 - p, | if 0 <= x < 1; |
| F(x) = | 1, | if x >= 1. |