dbern_rcpp function

Bernoulli density function