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

Public Member Functions

 NormalRandom (ipsdk::ipReal32 mean, ipsdk::ipReal32 sigma)
 constructor; create a NormalRandom object, that will generate random values whose distribution follows a normal law with parameters (mean, sigma) More...
 
 NormalRandom (ipsdk::ipReal32 mean, ipsdk::ipReal32 sigma, ipUInt32 nSeed)
 constructor; create a NormalRandom object, that will generate random values whose distribution follows a normal law with parameters (mean, sigma)
 
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, ipReal32 >::Type RegFloat
 

Protected Attributes

UniformRandomLCG< instructionSet, ipReal32_uniformRandomLCG
 
RegFloat _rMean
 
RegFloat _rSigma
 
bool _bGenerate
 
BasePack< IS2PackType< instructionSet >::_packType, T > _savedRandomPack
 

Constructor & Destructor Documentation

◆ NormalRandom()

template<eInstructionSet::domain instructionSet, eInstructionSet::domain instructionSetFma, typename T >
ipsdk::simd::NormalRandom< instructionSet, instructionSetFma, T >::NormalRandom ( ipsdk::ipReal32  mean,
ipsdk::ipReal32  sigma 
)

constructor; create a NormalRandom object, that will generate random values whose distribution follows a normal law with parameters (mean, sigma)

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

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