IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Protected Types | Protected Attributes | List of all members
ipsdk::simd::UniformRandomLCG< instructionSet, T > Class Template Reference

Public Member Functions

 UniformRandomLCG (T tmin, T tmax)
 constructor; create a UniformRandomLCG, that will generate random values uniformly distributed on the interval [tmin, tmax]; More...
 
 UniformRandomLCG (T tmin, T tmax, ipUInt32 nSeed)
 constructor; create a UniformRandomLCG, that will generate random values uniformly distributed on the interval [tmin, tmax]
 
IPSDK_FORCEINLINE BasePack< IS2PackType< instructionSet >::_packType, T > operator() ()
 generate a random value of type T to each element of a Pack<instructionSet, T>
 

Protected Types

typedef RegType< instructionSet, typename detail::UniformRandomLCGReg< instructionSet, T >::FloatType >::Type RegFloat
 

Protected Attributes

RegType< instructionSet, ipUInt32 >::Type _seed
 
RegFloat _rRangeMultiplier
 
RegFloat _rRangeOffset
 

Constructor & Destructor Documentation

◆ UniformRandomLCG()

template<eInstructionSet::domain instructionSet, typename T>
ipsdk::simd::UniformRandomLCG< instructionSet, T >::UniformRandomLCG ( tmin,
tmax 
)

constructor; create a UniformRandomLCG, that will generate random values uniformly distributed on the interval [tmin, tmax];

Note
: seed is computed from the current time, in microseconds

The documentation for this class was generated from the following file: