Movatterモバイル変換


[0]ホーム

URL:


Back to Documentations

SignatureDescriptionParameters
template<typename T>std::vector<T>gen_negative_binomial_dist(std::size_t n,constRandGenParams<T>&params={});
Produces random non-negative integer values i, distributed according to
discrete probability function:
    P(i|k,p)=(k+i−1i)⋅pk⋅(1−p)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

C++ DataFrame
[8]ページ先頭

©2009-2025 Movatter.jp