Programmer Guide/Command Reference/EVAL/dft: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
!''type'' !! ''x'' !! nrow(''x'') !! ''y'' !! nrow(''y'') !! description | !''type'' !! ''x'' !! nrow(''x'') !! ''y'' !! nrow(''y'') !! description | ||
|- | |- | ||
|0 | |'''0''' | ||
|real signal with N samples | |real signal with N samples | ||
|N | |N | ||
Line 14: | Line 14: | ||
|N+2 | |N+2 | ||
|real->complex forward dft<BR>note: only the first half of the conj. sym. complex spectrum is stored in ''y'' | |real->complex forward dft<BR>note: only the first half of the conj. sym. complex spectrum is stored in ''y'' | ||
|- | |||
|'''1''' | |||
|complex signal with N samples | |||
|2N | |||
|complex spectrum with N values | |||
|2N | |||
|complex->complex forward dft | |||
|- | |||
|'''2''' | |||
|first half (values: 0..N/2) of a conj. sym. complex spectrum | |||
|2N+1 | |||
|real signal with N samples | |||
|N | |||
|complex->real inverse dft<BR>note: the inverse of ''type''=0 | |||
|- | |||
|'''3''' | |||
|complex spectrum with N values | |||
|2N | |||
|complex signal with N samples | |||
|2N | |||
|complex->complex inverse dft | |||
|- | |- | ||
|} | |} |
Revision as of 11:58, 12 April 2011
Inverse or forward discrete fourier transform (dft).
- Usage
dft(x {, type)
- xthe data vector to be transformed
- type
- selects the data type of the argument and result and the transformation to be performed (default=0)
- Result
- A vector y containing the result of the transformation. The length and content of y depends on x and type.
type x nrow(x) y nrow(y) description 0 real signal with N samples N complex spectrum with N/2+1 values N+2 real->complex forward dft
note: only the first half of the conj. sym. complex spectrum is stored in y1 complex signal with N samples 2N complex spectrum with N values 2N complex->complex forward dft 2 first half (values: 0..N/2) of a conj. sym. complex spectrum 2N+1 real signal with N samples N complex->real inverse dft
note: the inverse of type=03 complex spectrum with N values 2N complex signal with N samples 2N complex->complex inverse dft