Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

PowerSpectr

Computes the power spectrum of a complex vector.

Syntax

IppStatus ippsPowerSpectr_64fc(const Ipp64fc*
pSrc
, Ipp64f*
pDst
, int
len
);
IppStatus ippsPowerSpectr_32fc(const Ipp32fc*
pSrc
, Ipp32f*
pDst
, int
len
);
IppStatus ippsPowerSpectr_16sc_Sfs(const Ipp16sc*
pSrc
, Ipp16s*
pDst
, int
len
, int
scaleFactor
);
IppStatus ippsPowerSpectr_64f(const Ipp64f*
pSrcRe
, const Ipp64f*
pSrcIm
, Ipp64f*
pDst
, int
len
);
IppStatus ippsPowerSpectr_32f(const Ipp32f*
pSrcRe
, const Ipp32f*
pSrcIm
, Ipp32f*
pDst
, int
len
);
IppStatus ippsPowerSpectr_16s_Sfs(const Ipp16s*
pSrcRe
, const Ipp16s*
pSrcIm
, Ipp16s*
pDst
, int
len
, int
scaleFactor
);
IppStatus ippsPowerSpectr_16s32f(const Ipp16s*
pSrcRe
, const Ipp16s*
pSrcIm
, Ipp32f*
pDst
, int
len
);
IppStatus ippsPowerSpectr_16sc32f(const Ipp16sc*
pSrc
, Ipp32f*
pDst
, int
len
);
Include Files
ipps.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
Libraries:
ippcore.lib
,
ippvm.lib
Parameters
pSrc
Pointer to the source vector.
pSrcRe
Pointer to the source vector which stores the real components.
pSrcIm
Pointer to the source vector which stores the imaginary components.
pDst
Pointer to the vector which stores the spectrum components of the elements.
len
Number of elements in the vector
scaleFactor
Scale factor, refer to Integer Scaling.
Description
This function returns the power spectrum of the complex input vector
pSrc
, or the complex input vector whose real and imaginary components are specified in the vectors
pSrcRe
and
pSrcIm
, respectively, and stores the results in the vector
pDst
. The power spectrum elements are squares of the magnitudes of the complex input vector elements:
pDst
[n] = (
pSrc
[n].
re
)
2
+ (
pSrc
[n].
im
)
2
, or
pDst
[n] = (
pSrcRe
[n])
2
+ (
pSrcIm
[n])
2
.
To compute magnitudes, use the function
ippsMagnitude
.
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error when at least one of the specified pointers is
NULL
.
ippStsSizeErr
Indicates an error when
len
is less than or equal to 0.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804