Signature | Description | Parameters |
---|---|---|
std::vector<bool> gen_bernoulli_dist(std::size_t n, const RandGenParams<bool> ¶ms = { }); |
It generates random Boolean values, according to the discrete probability function. The probability of true is:⎧ p if b == true P(b|p) = ⎨ ⎩ 1 - p if b == fasleIt returns the vector of results Optional parameters to set: prob_true, seed |
n: Number of numeric to generate params: List of all applicable parameters, see DataFrameTypes.h |