template class xf::fintech::MT2203IcnRng <double>¶
#include "rng.hpp"
Overview¶
MT2203IcnRng output datatype is double.
template <> class MT2203IcnRng <double> // fields MT2203 uniformRNG
Methods¶
seedInitialization¶
void seedInitialization (ap_uint <32> seed)
initialization using seed
Parameters:
seed | initialization seed |
statusSetup¶
statusSetup overload (1)¶
void statusSetup (ap_uint <32> data [624])
setup status
Parameters:
data | initialization data for setting up status |
statusSetup overload (2)¶
void statusSetup ( ap_uint <32> A, ap_uint <32> B, ap_uint <32> C )
setup status
Parameters:
A | value for configurable parameter A |
B | value for configurable parameter B |
C | value for configurable parameter C |
next¶
next overload (1)¶
double next ()
brief get next normally distributed random number
Returns:
a normally distributed random number
next overload (2)¶
void next ( double& uniformR, double& gaussianR )
get next normally distributed random number and its corresponding uniformly distributed random number
Parameters:
uniformR | return next uniformly distributed random number |
gaussianR | return next normally distributed random number |
next overload (3)¶
void next (double& uniformR)
get next uniformly distributed random number
Parameters:
uniformR | return a uniformly distributed random bumber |