• (bernoulli p)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/probabilities/finite_distributions.clj:106 top

(defn bernoulli
  "Returns the Bernoulli distribution for probability p."
  (choose p 1 :else 0))
Vars in clojure.contrib.probabilities.finite-distributions/bernoulli: defn
Used in 0 other vars

Comments top

No comments for bernoulli. Log in to add a comment.