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 | - | р параметр распределения (вероятность 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. |
[править] Notes
Предполагается, что 0 < p ≤ 1 и 0 < 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.