fourierNumUtil: Number of independent values in DFT of real signals.

Description Usage Arguments Details Value Examples

View source: R/filter.R

Description

This function calculates the number of independent values in Discrete Fourier Transform calculations of real signals.

Usage

1

Arguments

N

Number of samples in a signal.

Details

When calculating the Discrete Fourier Transform (DFT) of real signals, there is a symmetry on the resulting values:

X_k = X^*_{N-k}

where X is the discrete Fourier transform of the signal. The number of independent values in the signal depends on whether the length of the signal is even or odd. This function returns the correct number for any case.

Value

Number of indepent (complex) values in the DFT of the signal.

Examples

1
2

tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.