RandGauss

Generates the pseudo-random samples with a Gaussian distribution.

Syntax

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);

Parameters

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.

Description

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.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pRandGaussState pointer is NULL.

ippStsContextMatchErr

Indicates an error when the state identifier is incorrect.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.