Random

Node Icon

The Bernoulli distribution is the discrete probability distribution of a random variable which takes the value 1 with probability \(p\) and the value 0 with probability \(1-p\).

Outputs

Output

Output Bernoulli distribution.

Type: Boolean Array

Settings

Configure

Shape Integers

Shape of the output Boolean Array if no Elementwise Probability is provided.

Distribution

Probability Float

Probability for outputing TRUE.

Elementwise Probability Boolean

Enable elementwise probability. Will expose an input where you can provide an Numeric Array where each element represents a probability for true. Has to be in the range [0,1].

See also

Keywords: