WinKaiser

Multiplies a vector by a Kaiser windowing function.

Syntax

IppStatus ippsWinKaiser_16s(const Ipp16s* pSrc, Ipp16s* pDst, int len, float alpha);

IppStatus ippsWinKaiser_32f(const Ipp32f* pSrc, Ipp32f* pDst, int len, float alpha);

IppStatus ippsWinKaiser_64f(const Ipp64f* pSrc, Ipp64f* pDst, int len, float alpha);

IppStatus ippsWinKaiser_16sc(const Ipp16sc* pSrc, Ipp16sc* pDst, int len, float alpha);

IppStatus ippsWinKaiser_32fc(const Ipp32fc* pSrc, Ipp32fc* pDst, int len, float alpha);

IppStatus ippsWinKaiser_64fc(const Ipp64fc* pSrc, Ipp64fc* pDst, int len, float alpha);

IppStatus ippsWinKaiserQ15_16s(const Ipp16s* pSrc, Ipp16s* pDst, int len, int alphaQ15);

IppStatus ippsWinKaiserQ15_16sc(const Ipp16sc* pSrc, Ipp16sc* pDst, int len, int alphaQ15);

IppStatus ippsWinKaiser_16s_I(Ipp16s* pSrcDst, int len, float alpha);

IppStatus ippsWinKaiser_32f_I(Ipp32f* pSrcDst, int len, float alpha);

IppStatus ippsWinKaiser_64f_I(Ipp64f* pSrcDst, int len, float alpha);

IppStatus ippsWinKaiser_16sc_I(Ipp16sc* pSrcDst, int len, float alpha);

IppStatus ippsWinKaiser_32fc_I(Ipp32fc* pSrcDst, int len, float alpha);

IppStatus ippsWinKaiser_64fc_I(Ipp64fc* pSrcDst, int len, float alpha);

IppStatus ippsWinKaiserQ15_16s_I(Ipp16s* pSrcDst, int len, int alphaQ15);

IppStatus ippsWinKaiserQ15_16sc_I(Ipp16sc* pSrcDst, int len, int alphaQ15);

Parameters

pSrc

Pointer to the source vector.

pDst

Pointer to the destination vector.

pSrcDst

Pointer to the source and destination vector for the in-place operation.

alpha

Adjustable parameter associated with the Kaiser windowing equation.

alphaQ15

Scaled version of alpha. The scaleFactor value is 15.

len

Number of elements in the vector.

Description

The function ippsWinKaiser is declared in the ipps.h file. This function multiplies the vector pSrc by the Kaiser window, and stores the result in pDst.

The in-place flavors of ippsWinKaiser multiply the vector pSrcDst by the Kaiser window and store the result in pSrcDst.

ippsWinKaiser. The function ippsWinKaiser allows the application to specify alpha. The function multiplies both real and imaginary parts of the complex vector by the same window. The Kaiser family of windows are defined as follows:



Here I0() is the modified zero-order Bessel function of the first kind.

ippsWinKaiserQ15. The function ippsWinKaiserQ15 multiplies a vector by a Kaiser window with alphaQ15 scaled according to the factor 15.

The example below shows how to use the function ippsWinKaiser_32f_I.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pDst, pSrc, or pSrcDst pointer is NULL.

ippStsSizeErr

Indicates an error when len is less than 1.

ippStsHugeWinErr

Indicates an error when the Kaiser window is too big.

Using the ippsWinKaiser Function

void kaiser(void) {
     Ipp32f x[8];
     IppStatus st;
     ippsSet_32f(1, x, 8);
     st = ippsWinKaiser_32f_I( x, 8, 1.0f );
     printf_32f("kaiser(half) =", x, 4, ippStsNoErr);
}
Output: 
   kaiser(half) =  0.135534 0.429046 0.755146 0.970290
Matlab* Analog: 
    >> kaiser(8,7/2)'



Submit feedback on this help topic

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