get_rect {fftab} | R Documentation |
Extract Rectangular or Polar Components
Description
The get_rect
and get_polr
functions extract specific components from a
fftab
object, representing the Fourier coefficients in either rectangular
or polar form.
Usage
get_rect(x)
get_polr(x)
Arguments
x |
A matrix object containing FFT results. |
Value
-
get_rect
: A matrix with two columns:-
re
: The real part of the coefficients. -
im
: The imaginary part of the coefficients.
-
-
get_polr
: A matrix with two columns:-
mod
: The magnitude of the coefficients. -
arg
: The phase angle of the coefficients, in radians.
-
See Also
get_fx()
, get_re()
, get_mod()
, to_rect()
, to_polr()
Examples
fftab(c(1, 0, -1, 0)) |> get_rect()
fftab(c(1, 0, -1, 0)) |> get_polr()
[Package fftab version 0.1.0 Index]