std::uniform_real_distribution::operator()
De cppreference.com
< cpp | numeric | random | uniform real distribution
C++
Biblioteca numérica
Funciones matemáticas comunes | ||||||||||||||||
Funciones matemáticas especiales(C++17) | ||||||||||||||||
Constantes matemáticas(C++20) | ||||||||||||||||
Algoritmos básicos de álgebra lineal(C++26) | ||||||||||||||||
Entorno de punto flotante(C++11) | ||||||||||||||||
Números complejos | ||||||||||||||||
Arrays numéricos | ||||||||||||||||
Generación de números pseudoaleatorios | ||||||||||||||||
Operaciones de factores | ||||||||||||||||
(C++17) | ||||||||||||||||
(C++17) | ||||||||||||||||
Interpolaciones | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
Saturación aritmética | ||||||||||||||||
| ||||||||||||||||
Operaciones numéricas genéricas | ||||||||||||||||
(C++11) | ||||||||||||||||
(C++23) | ||||||||||||||||
(C++17) | ||||||||||||||||
(C++17) | ||||||||||||||||
(C++17) | ||||||||||||||||
(C++17) | ||||||||||||||||
(C++17) | ||||||||||||||||
(C++17) | ||||||||||||||||
Operaciones de bits | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++23) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) | ||||||||||||||||
(C++20) |
Generación de números pseudoaleatorios
Motores y adaptadores de motor Original: Engines and engine adaptors The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Generadores Original: Generators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
(C++11) | ||||
Distribuciones Original: Distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
Distribuciones uniformes Original: Uniform distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Bernoulli distribuciones Original: Bernoulli distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Poisson distribuciones Original: Poisson distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Distribuciones normales Original: Normal distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Distribuciones de muestreo Original: Sampling distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
(C++11) | ||||
Secuencias de semillas Original: Seed Sequences The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
(C++11) | ||||
C biblioteca Original: C library The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
std::uniform_real_distribution
Las funciones miembro Original: Member functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
Generación Original: Generation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
uniform_real_distribution::operator() | ||||
Características Original: Characteristics The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
Terceros funciones Original: Non-member functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
template<class Generator > result_type operator()( Generator& g ); | (1) | (desde C++11) |
template<class Generator > result_type operator()( Generator& g, const param_type& params ); | (2) | (desde C++11) |
Genera números aleatorios que se distribuyen de acuerdo con la función de probabilidad asociada. La entropía se obtiene llamando a g.operator() .
(1) Usa el conjunto de parámetros asociados.
(2) Usa params
como parámetros de la distribución. El conjunto de parámetros asociado no se modifica.
[editar] Parámetros
g | - | un objeto generador uniforme de números aleatorios. |
params | - | un conjunto de parámetros de distribución para utilizar en lugar del asociado |
[editar] Valor de retorno
El número aleatorio generado.
[editar] Complejidad
El número constante de invocaciones a g.operator() amortizado.