Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library
- How to use library to create a power spectrum

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Glowlink_Glowlink

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-12-2010
03:58 PM

131 Views

How to use library to create a power spectrum

I'm new to the Math Kernal Library.

Are there any examples that show how to to take a set to complex data and convert it to a power spectrum

thx

Link Copied

3 Replies

ArturGuzik

Valued Contributor I

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-12-2010
05:35 PM

131 Views

I might be wrong but in MKL itself you'll need to use FFT routines and obtain it yourself. However, as far as I can remember, in IPP library there is PowerSpectr function which takes complex vector and computes its power spectrum in single call.

A.

Gennady_F_Intel

Moderator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-14-2010
05:53 AM

131 Views

you can find such functions for double, float and short complex data types:

as an example

IppStatus ippsPowerSpectr_64fc(const Ipp64fc* pSrc, Ipp64f* pDst, int len);

where 64fc ( in IPP notation) == double complex ( MKL notation).

--Gennady

Dmitry_B_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-14-2010
08:47 PM

131 Views

Given the spectrum y=fft(x), power spectrum of x is ps*=y *conj(y), the computation can be done with a simple loop readily vectorizable bycompiler, or with a call to MKL VML function, like this:*

vcMulByConj(n,y,y,ps)

Thanks

Dima

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.