f(x) = \left\{\begin{matrix} p & \mbox {si }x=1, \\ q & \mbox {si }x=0, \\ 0 & \mbox {sinon.}\end{matrix}\right.