std::uniform_real_distribution::uniform_real_distribution
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody> explicit uniform_real_distribution( RealType a = 0.0, RealType b = 1.0 ); |
(1) | (dal C++11) |
explicit uniform_real_distribution( const param_type& params ); |
(2) | (dal C++11) |
Costruisce nuovo oggetto di distribuzione. La prima versione utilizza
a e b come i parametri di distribuzione, la seconda versione utilizza params come i parametri di distribuzioneOriginal:
{{{2}}}
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.
|Constructs new distribution object. The first version uses a and b as the distribution parameters, the second version uses params as the distribution parameters}}}}
Parametri
| a | - | il una distribuzione parametro (valore minimo)
Original: the a distribution parameter (minimum value) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| b | - | il b parametro di distribuzione (valore massimo)
Original: the b distribution parameter (maximum value) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| params | - | il parametro di distribuzione predisposto
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. |
Note
Richiede che a ≤ b e b-a ≤ std::numeric_limits<RealType>::max()
Original:
Requires that a ≤ b and b-a ≤ std::numeric_limits<RealType>::max()
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.