Génère un nombre aléatoire dans l'intervalle [0,1[.
Plus de détails...
#include <arcane/core/random/Uniform01.h>
|
static Real | apply (base_type &_rng) |
| Génère un nombre aléatoire compris dans l'intervalle [0,1[ à partir du générateur _rng.
|
|
static ARCANE_DEPRECATED_122 Real | apply (const base_type &_rng, typename base_type::result_type rng_val) |
|
static Real | min () |
| Valeur minimal retournée.
|
|
static Real | max () |
| Borne supérieure (non atteinte) des valeurs retournées.
|
|
|
static Real | _apply (const base_type &_rng, typename base_type::result_type rng_val) |
|
template<class UniformRandomNumberGenerator>
class Arcane::random::Uniform01< UniformRandomNumberGenerator >
Génère un nombre aléatoire dans l'intervalle [0,1[.
- Note
- Oct2014: reporte l'implémentation de boost 1.55 qui corrige un bug. Dans la version d'avant, le générateur pouvait retourner la valeur 1.0 ce qui faisait planter le programme lors de l'appel à NormalDistribution qui utilise log(1.0 - r).
Définition à la ligne 61 du fichier Uniform01.h.
◆ base_result
template<class UniformRandomNumberGenerator>
◆ base_type
template<class UniformRandomNumberGenerator>
◆ result_type
template<class UniformRandomNumberGenerator>
◆ Uniform01()
template<class UniformRandomNumberGenerator>
◆ _apply()
template<class UniformRandomNumberGenerator>
static Real Arcane::random::Uniform01< UniformRandomNumberGenerator >::_apply |
( |
const base_type & | _rng, |
|
|
typename base_type::result_type | rng_val ) |
|
inlinestaticprivate |
◆ apply() [1/2]
template<class UniformRandomNumberGenerator>
Génère un nombre aléatoire compris dans l'intervalle [0,1[ à partir du générateur _rng.
Définition à la ligne 83 du fichier Uniform01.h.
Référencé par operator()().
◆ apply() [2/2]
template<class UniformRandomNumberGenerator>
static ARCANE_DEPRECATED_122 Real Arcane::random::Uniform01< UniformRandomNumberGenerator >::apply |
( |
const base_type & | _rng, |
|
|
typename base_type::result_type | rng_val ) |
|
inlinestatic |
- Obsolète
- Utiliser apply(base_type&) à la place.
- Note
- Pour des raisons de compatibilité, cette version contient un contournement temporaire permettant de garantir que la valeur retournée est différente de 1.0. Cependant, ce contournement n'est pas forcément très pertinent au niveau de la statistique.
Définition à la ligne 108 du fichier Uniform01.h.
◆ max()
template<class UniformRandomNumberGenerator>
Borne supérieure (non atteinte) des valeurs retournées.
Définition à la ligne 119 du fichier Uniform01.h.
◆ min()
template<class UniformRandomNumberGenerator>
Valeur minimal retournée.
Définition à la ligne 117 du fichier Uniform01.h.
◆ operator()()
template<class UniformRandomNumberGenerator>
Génère un nombre aléatoire compris dans l'intervalle [0,1[.
Définition à la ligne 74 du fichier Uniform01.h.
Références apply().
◆ _rng
template<class UniformRandomNumberGenerator>
◆ has_fixed_range
template<class UniformRandomNumberGenerator>
La documentation de cette classe a été générée à partir du fichier suivant :