Initializes a noise generator with uniform distribution.
IppStatus ippsRandUniformInit_16s(IppsRandUniState_16s* pRandUniState, Ipp16s low, Ipp16s high, unsigned int seed);
pRandUniState |
Pointer to the structure containing parameters for the generator of noise. |
low |
Lower bound of the uniform distribution range. |
high |
Upper bound of the uniform distribution range. |
seed |
Seed value used by the pseudo-random number generation algorithm. |
The function ippsRandUniformInit is declared in the ipps.h file. This function initializes the pseudo-random generator state pRandUniState in the external buffer. The size of this buffer must be computed previously by calling the function ippsRandUniformGetSize. The uniform distribution range is specified by the lower and upper bounds low and high, respectively.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pRandUniState pointer is NULL. |
ippStsMemAllocErr |
Indicates an error when there is not enough memory for the operation. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.