distr_bernoulli function

Creates a Bernoulli distribution parameterized by probsor logits (but not both). Samples are binary (0 or 1). They take the value 1 with probability pand 0 with probability 1 - p.

  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2024-05-21