std::discrete_distribution::discrete_distribution
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
discrete_distribution(); |
(1) | (desde C++11) |
template< class InputIt > discrete_distribution( InputIt first, InputIt last ); |
(2) | (desde C++11) |
discrete_distribution( std::initializer_list<double> weights ); |
(3) | (desde C++11) |
template< class UnaryOperation > discrete_distribution( std::size_t count, double xmin, double xmax, |
(4) | (desde C++11) |
explicit discrete_distribution( const param_type& params ); |
(2) | (desde C++11) |
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.
[first, last)
rango. Si first == last, los efectos son los mismos que de la constructor predeterminado .[first, last)
. If first == last, the effects are the same as of the default constructor.You can help to correct and verify the translation. Click here for instructions.
weights
. Efectivamente llama initializer_list(weigths.begin(), weights.end()) .weights
. Effectively calls initializer_list(weigths.begin(), weights.end()).You can help to correct and verify the translation. Click here for instructions.
count
que se generan utilizando unary_op
función. Cada uno de los pesos es igual a wi = unary_op(xmin + δ/2 + i · δ), donde δ =
(xmax − xmin) |
count |
xmin
y xmax
debe ser tal que δ > 0. Si count == 0 los efectos son los mismos que de la constructor predeterminado .count
weights that are generated using function unary_op
. Each of the weights is equal to wi = unary_op(xmin + δ/2 + i · δ), where δ =
(xmax − xmin) |
count |
xmin
and xmax
must be such that δ > 0. If count == 0 the effects are the same as of the default constructor.You can help to correct and verify the translation. Click here for instructions.
params
como los parámetros de distribución .params
as the distribution parameters.You can help to correct and verify the translation. Click here for instructions.
Parámetros
first, last | - | la gama de elementos que definen los números a utilizar como pesos. El tipo de los elementos mencionados por
InputIterator debe ser convertible a doubleOriginal: the range of elements defining the numbers to use as weights. The type of the elements referred by InputIterator must be convertible to doubleThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
weights | - | inicializador lista que contiene los pesos
Original: initializer list containing the weights The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
unary_op | - | Objeto función de operación unaria que se aplicará. La signatura de la función deberá ser equivalente a lo siguiente: Ret fun(const Type &a); La signatura no necesita tener const &. |
params | - | el parámetro de distribución establecido
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. |
Requisitos de tipo | ||
-InputIt debe reunir los requerimientos de InputIterator .
|