3.2.6A higher level function to calculate DFT. Returns a FFTResult for easier access to the result as complex, amp, phase arrays. Calls calcDFT internally. Inverse FFT is available as FFTResult.fftInverse().
(any)
seismogram or SeismogramDisplayData to transform
any:
fft of seismogram
Calculates the discrete fourier transform using the OregonDSP library.
This is a lower level function, fftForward is better for most uses.
(any)
timeseries array
any:
DFT as packed array Float32Array
Calculates the inverse discrete fourier transform using the oregondsp library.
(any)
DFT as packed array Float32Array
(any)
number of points in original timeseries array.
any:
inverse of DFT as a timeseries array
Finds smallest power of two >= input number.
(any)
input number
any:
tuple of N and log2N, like [16,4]
Results of FFT calculation. Allows convertion of the packed real/imag array output from calcDFT into amplitude and phase.
(any)
(any)
Factory method to create FFTResult from packed array.
(any)
real and imag values in packed format
(any)
length of the original timeseries before padding.
(any)
sample rate of original data
any:
FFTResult
Factory method to create from array of complex numbers.
(any)
real and imag values as array of Complex objects.
(any)
length of the original timeseries before padding.
(any)
sample rate of original data
any:
FFTResult
Factory method to create from amp and phase arrays
(any)
amplitude values
(any)
phase values
(any)
length of the original timeseries before padding.
(any)
sample rate of original data
any:
FFTResult
The minimum non-zero frequency in the fft
any:
fundamental frequency
calculates the inverse fft of this.packedFreq
any:
time domain representation