Signature | Description | Parameters |
---|---|---|
template<typename T> std::vector<T> gen_binomial_dist(std::size_t n, const RandGenParams<T> ¶ms = { }); |
Produces random non-negative integer values i, distributed according to discrete probability function: P(i|t,p)=(ti)⋅pi⋅(1−p)t−i It returns the vector of results Optional parameters to set: t_dist, prob_true, seed |
T: Type can only be [unsigned] char, [unsigned] short, [unsigned] int, [unsigned] long int, or [unsigned] long long int n: Number of numerics to generate params: List of all applicable parameters, see DataFrameTypes.h |