RandGaussInitAlloc

Allocates memory and initializes a noise generator with Gaussian distribution.

Syntax

IppStatus ippsRandGaussInitAlloc_8u(IppsRandGaussState_8u** pRandGaussState, Ipp8u mean, Ipp8u stdDev, unsigned int seed);

IppStatus ippsRandGaussInitAlloc_16s(IppsRandGaussState_16s** pRandGaussState, Ipp16s mean, Ipp16s stdDev, unsigned int seed);

IppStatus ippsRandGaussInitAlloc_32f(IppsRandGaussState_32f** pRandGaussState, Ipp32f mean, Ipp32f stdDev, unsigned int seed);

Parameters

pRandGaussState

Pointer to the structure containing parameters for the generator of noise.

mean

Mean of the Gaussian distribution.

stdDev

Standard deviation of the Gaussian distribution.

seed

Seed value used by the pseudo-random number generator algorithm.

Description

The function ippsRandGaussInitAlloc is declared in the ipps.h file. This function allocates memory and initializes the pseudo-random generator state structure pRandGaussState. This structure contains parameters of the required noise generator that are specified by the mean, stdDev and seed values.

Return Values

ppStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pRandGaussState pointer is NULL.

ippStsMemAllocErr

Indicates an error when there is not enough memory for the operation.

Submit feedback on this help topic

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