std::bernoulli_distribution::bernoulli_distribution
Da cppreference.com
< cpp | numeric | random | bernoulli distribution
![]() |
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 bernoulli_distribution( double p = 1 ); |
(1) | (desde C++11) |
explicit bernoulli_distribution( const param_type& params ); |
(2) | (desde C++11) |
Constrói objeto de distribuição nova. A primeira versão usa
p
como o parâmetro de distribuição, a segunda versão usa params
como o parâmetro de distribuição.Original:
Constructs new distribution object. The first version uses
p
as the distribution parameter, the second version uses params
as the distribution parameter.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.
[editar] Parâmetros
p | - | o parâmetro de distribuição p (probabilidade de gerar true)
Original: the p distribution parameter (probability of 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 | - | o parâmetro de distribuição definido
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. |