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);
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. |
The function ippsRandGauss is declared in the ipps.h file. 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 ippsRandGaussInitAlloc 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. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.