Developer Reference for Intel® Integrated Performance Primitives
Generates the pseudo-random samples with a Gaussian distribution.
IppStatus ippsRandGauss_8u(Ipp8u* pDst, int len, IppsRandGaussState_8u* pRandGaussState);
IppStatus ippsRandGauss_16s(Ipp16s* pDst, int len, IppsRandGaussState_16s* pRandGaussState);
IppStatus ippsRandGauss_32f(Ipp32f* pDst, int len, IppsRandGaussState_32f* pRandGaussState);
IppStatus ippsRandGauss_64f(Ipp64f* pDst, int len, IppsRandGaussState_64f* pRandGaussState);
ipps.h
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
pDst |
Pointer to the array which stores the samples. |
len |
Number of samples to be computed. |
pRandGaussState |
Pointer to the structure containing parameters of the noise generator. |
This function generates len pseudo-random samples with a Gaussian distribution and stores them in the array pDst. The initial parameters of the generator are set in the generator state structure pRandGaussState. Before calling ippsRandGauss, you must initialize the generator state by calling the RandGaussInit function.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pRandGaussState pointer is NULL. |
ippStsContextMatchErr |
Indicates an error when the state identifier is incorrect. |