mirror_hermitian_fft: Mirror a set of FFT values by assuming the fourier transform...

View source: R/dsp_tools.r

mirror_hermitian_fftR Documentation

Mirror a set of FFT values by assuming the fourier transform to be hermitian.

Description

The FT of a purely real function is hermitian. Exploit this to obtain a full set of FFT values from the values at positive frequencies only (and f=0).

Usage

mirror_hermitian_fft(fft_vals, sampling)

Arguments

fft_vals

A complex vector containing the FFT values of a function for the frequencies given by sampling$freqs_to_calc (i.e. f=0 as well as the positive ones).

sampling

A sampling object, as usually created by create.sampling.

Value

A complex vector containing the full set of FFT values at all frequencies (and in the same order as) given by sampling$fft_freqs.

Note

Should be clear, but once again: This function produces false results but **does not throw an error** if the underlying function is not purely real!


ime-luebeck/semgsim documentation built on April 14, 2022, 11:02 p.m.