|
Code Packages
1
Add-on code processing modules
|
Provides functions for discrete signal transformations More...
Static Public Member Functions | |
| static Complex | Analysis (Complex[] A, int k) |
| Returns the frequency component of a complex array using indexing in frequency domain More... | |
| static double [] | DCT (double[] A) |
| "Discrete Cosine Transform (DCT-II)" More... | |
| static Complex [] | DFT (Complex[] A) |
| "Discrete Fourier Transform" More... | |
| static Complex [] | FFT (Complex[] A) |
| "Fast Fourier Transform" More... | |
| static double [] | IDCT (double[] A) |
| "Inverse Discrete Cosine Transform (DCT-III)" More... | |
| static Complex [] | IDFT (Complex[] A) |
| "Inverse Discrete Fourier Transform" More... | |
| static Complex [] | IFFT (Complex[] A) |
| "Inverse Fast Fourier Transform" More... | |
| static Complex | Synthesis (Complex[] A, int n) |
| Returns the sample value from a complex frequency domain using indexing in time domain More... | |
Provides functions for discrete signal transformations
Returns the frequency component of a complex array using indexing in frequency domain
The function runs only for the specified index (k) and does not calculate the full frequency spectrum.
| A | complex time domain array |
| k | frequency domain index (0..N-1) |
![$\displaystyle c_k=\sum\limits_{n=0}^{N-1}A[n]e^{-j2\pi nk/N}$](form_162.png)
Example
|
static |
"Discrete Cosine Transform (DCT-II)"
| A | real array |
Example
"Discrete Fourier Transform"
The length of the returned frequency spectrum is equal to the size of the input array.
| A | complex time domain array |
![$\displaystyle c[k]= \sum\limits_{n=0}^{N-1} A[n]e^{-j2\pi nk/N} \hspace{1cm}, 0\leq k \leq N-1$](form_172.png)
Example
"Fast Fourier Transform"
For arbitrary size time domain array, the NArray.PaddRadix2 function can be used with zero value padding before the FFT.
For a real time domain array, the NArray.RealToComplex function can be used to convert a real array into a complex array.
If the application uses only positive frequencies, the NArray.Range function can be used to extract them.
| A | complex time domain array. Size must be a power of 2 |
Example
|
static |
"Inverse Discrete Cosine Transform (DCT-III)"
| A | real array |
Example
"Inverse Discrete Fourier Transform"
The size of the returned complex time domain array is equal to the length of the input frequency domain spectrum.
| A | complex array representing frequency spectrum |
![$\displaystyle c[n]=\frac{1}{N}\sum\limits_{k=0}^{N-1}A[k]e^{j2\pi nk/N}\hspace{1cm}, 0\leq n \leq N-1 $](form_173.png)
Example
"Inverse Fast Fourier Transform"
| A | complex array representing frequency spectrum. Size must be a power of 2 |
Example
Returns the sample value from a complex frequency domain using indexing in time domain
The function runs only for the specified index (n) and does not calculate the full time domain signal.
| A | complex array representing frequency spectrum |
| n | time domain index |
![$\displaystyle c_n= \frac{1}{N} \sum\limits_{k=0}^{N-1} A[k] e^{j2\pi nk/N} $](form_166.png)
Example