Discrete distribution with 2 values.

pbernoulli_custom(x, a, b, p)

Arguments

x

observations.

a

first value.

b

second value.

p

Let X ~ pbernoulli_custom. Then p = Probability(X=a).