template class xf::fintech::MT2203IcnRng <float>¶
#include "rng.hpp"
Overview¶
MT2203IcnRng output datatype is double.
template <> class MT2203IcnRng <float> // 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 | 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)¶
float next ()
brief get next normally distributed random number
Returns:
a normally distributed random number
next overload (2)¶
void next ( float& uniformR, float& 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 (float& uniformR)
get next uniformly distributed random number
Parameters:
uniformR | return a uniformly distributed random bumber |