Plot a simple density plot to illustrate the Bernoulli distribution for a specified probability of success of a Bernoulli event.

bern_plot(p)

Arguments

p

double

Value

plot

Examples

bern_plot(0.7)