Creates a Jaehne vector.
IppStatus ippsVectorJaehne_8u(Ipp8u* pDst, int len, Ipp8u magn);
IppStatus ippsVectorJaehne_8s(Ipp8s* pDst, int len, Ipp8s magn);
IppStatus ippsVectorJaehne_16u(Ipp16u* pDst, int len, Ipp16u magn);
IppStatus ippsVectorJaehne_16s(Ipp16s* pDst, int len, Ipp16s magn);
IppStatus ippsVectorJaehne_32u(Ipp32u* pDst, int len, Ipp32u magn);
IppStatus ippsVectorJaehne_32s(Ipp32s* pDst, int len, Ipp32s magn);
IppStatus ippsVectorJaehne_32f(Ipp32f* pDst, int len, Ipp32f magn);
IppStatus ippsVectorJaehne_64f(Ipp64f* pDst, int len, Ipp64f magn);
pDst |
Pointer to the destination vector. |
len |
Number of elements in the vector. |
magn |
Magnitude of the signal to be generated. |
The function ippsVectorJaehne is declared in the ipps.h file. This function creates a Jaehne vector and stores the result in pDst. The magnitude magn must be positive. The function generates the sinusoid with a variable frequency. The computation is performed as follows:
pDst[n] = magn * sin ((0.5πn2)/len), 0 ≤ n < len
The example below shows how to use the function ippsVectorJaehne.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pSrcDst pointer is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to 0. |
ippStsJaehneErr |
Indicates an error when magn is negative. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.