std::negative_binomial_distribution::negative_binomial_distribution
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| explicit negative_binomial_distribution( IntType k = 1, double p = 0.5 ); |
(1) | (C++11 起) |
| explicit negative_binomial_distribution( const param_type& params ); |
(2) | (C++11 起) |
构造一个新分配的对象。第一个版本使用
k和p的分布参数,第二个版本使用params的分布参数.Original:
Constructs a new distribution object. The first version uses
k and p as the distribution parameters, the second version uses params as the distribution parameters.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 参数
| k | - | “K”分布参数的试验失败(数字)
Original: the k distribution parameter (number of trial failures) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| p | - | “P”分布参数(概率的审判产生true)
Original: the p distribution parameter (probability of a trial generating true) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| params | - | 的分布参数设定
Original: the distribution parameter set The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 注释
要求0 < p ≤ 10 < k.
Original:
Requires that 0 < p ≤ 1 and 0 < k.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
默认构造
std::negative_binomial_distribution相当于默认构造std::geometric_distribution.Original:
The default-constructed
std::negative_binomial_distribution is equivalent to the default-constructed std::geometric_distribution.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.