I'm currently working on a python project for which I need to use the complex Fourier decomposition of a complex function. Note that this function is numerical as I don't have the analytical expression, only a list of values. I used the fft from scipy to get the Fourier coefficients and noticed that the modulus of the coefficients were not decreasing. So here is my question: to best approximate the function with a finite number of harmonies, how should I select the harmonies ? After looking up the internet (and my past knowledge) I would have choosen the first harmonies (and if that, should I select the harmonies $[0,1,-1,2,-2,...]$ or $[0,-1,1,-2,2,...]$), but now I wonder wether I should better take the harmonies with the highest amplitudes (it should be the ones with most impact, right?).
2026-03-30 16:41:45.1774888905
Complex Fourier Decomposition
92 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in FOURIER-ANALYSIS
- An estimate in the introduction of the Hilbert transform in Grafakos's Classical Fourier Analysis
- Verifying that translation by $h$ in time is the same as modulating by $-h$ in frequency (Fourier Analysis)
- How is $\int_{-T_0/2}^{+T_0/2} \delta(t) \cos(n\omega_0 t)dt=1$ and $\int_{-T_0/2}^{+T_0/2} \delta(t) \sin(n\omega_0 t)=0$?
- Understanding Book Proof that $[-2 \pi i x f(x)]^{\wedge}(\xi) = {d \over d\xi} \widehat{f}(\xi)$
- Proving the sharper form of the Lebesgue Differentiation Theorem
- Exercise $10$ of Chapter $4$ in Fourier Analysis by Stein & Shakarchi
- Show that a periodic function $f(t)$ with period $T$ can be written as $ f(t) = f_T (t) \star \frac{1}{T} \text{comb}\bigg(\frac{t}{T}\bigg) $
- Taking the Discrete Inverse Fourier Transform of a Continuous Forward Transform
- Is $x(t) = \sin(3t) + \cos\left({2\over3}t\right) + \cos(\pi t)$ periodic?
- Translation of the work of Gauss where the fast Fourier transform algorithm first appeared
Related Questions in FOURIER-TRANSFORM
- Proof of Fourier transform of cos$2\pi ft$
- Find the convergence of series of a sequence of functions in $L^2(\mathbb{R})$
- solving a simple ODE with Fourier transform
- How can we prove that $e^{-jωn}$ converges at $0$ while n -> infinity?
- Show that a periodic function $f(t)$ with period $T$ can be written as $ f(t) = f_T (t) \star \frac{1}{T} \text{comb}\bigg(\frac{t}{T}\bigg) $
- Taking the Discrete Inverse Fourier Transform of a Continuous Forward Transform
- Arcsin of a number greater than one
- Complex numbers in programming
- Power spectrum of field over an arbitrarily-shaped country
- Computing an inverse Fourier Transform / Solving the free particle Schrödinger equation with a gaussian wave packet as initial condition
Related Questions in SIGNAL-PROCESSING
- What is the result of $x(at) * δ(t-k)$
- How is $\int_{-T_0/2}^{+T_0/2} \delta(t) \cos(n\omega_0 t)dt=1$ and $\int_{-T_0/2}^{+T_0/2} \delta(t) \sin(n\omega_0 t)=0$?
- Show that a periodic function $f(t)$ with period $T$ can be written as $ f(t) = f_T (t) \star \frac{1}{T} \text{comb}\bigg(\frac{t}{T}\bigg) $
- Taking the Discrete Inverse Fourier Transform of a Continuous Forward Transform
- Is $x(t) = \sin(3t) + \cos\left({2\over3}t\right) + \cos(\pi t)$ periodic?
- Fast moving object, how to remove noise from observations?
- Computing convolution using the Fourier transform
- Find Fourier Transform of $\cos^2(ωt)x(t)$
- Finding closed expression for the output of an LTI system
- Is there an intuitive way to see that $\mathbb{E}[X|Y]$ is the least squares estimator of $X$ given $Y$?
Related Questions in PYTHON
- Solve an equation with binary rotation and xor
- Function to rotate on a 3D sphere at a fixed distance?
- Verify the Riemann Hypothesis for first 1000 zeros.
- confused by the description of numpy.linalg.lstsq
- Rotate around a specific point instead of 0,0,0
- Calculating $\pi$: using a spigot and starting from middle
- Prove by the Principle of Recursion
- Use recursion to prove the bounds of the Fibonacci numbers when $n\geq 2$
- How to perform a double (numerical) integration of $f(x,y)$ over an irregular sample of $x$ and $y$ values
- What does s(n) = s(n) mean?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
The mean squared error between a partial reconstruction $(z_n)_n$ and the true reconstruction $(y_n)_n$ of the samples is given by $$MSE=\frac{1}{N}\sum_{n=0}^{N-1}|y_n-z_n|^2=\frac{1}{N}\sum_{n=0}^{N-1}\bigg|\frac{1}{N}\sum_{k=-(N-1)/2}^{(N-1)/2}\hat{y}_ke^{2\pi i \frac{kn}{N}}-\frac{1}{N}\sum_{j \in J}\hat{y}_je^{2\pi i \frac{jn}{N}}\bigg|^2$$ The set $J$ contains the selected frequencies among $\{-(N-1)/2,...,-1,0,1,...,(N-1)/2\}$ that we want for our partial reconstruction. If we constrain $\textrm{len}(J)<N$ then we have to choose the DFT terms $\hat{y}_j$ that minimize the MSE. Since every $\hat{y}_j$ included in $z_n$cancels out with a component of $y_n$, if we set the length of $J$ we want the MSE to be made of the $N-J$ components that account for the smallest MSE value possible. For example if $\textrm{len}(J)=N-2$ then $$\begin{aligned}MSE&=\frac{1}{N^3}\sum_{n=0}^{N-1}|\hat{y}_{k_1}e^{2\pi i \frac{k_1n}{N}}+\hat{y}_{k_2}e^{2\pi i \frac{k_2n}{N}}|^2=\\ &=\frac{1}{N^3}\sum_{n=0}^{N-1}(|\hat{y}_{k_1}|^2+\hat{y}_{k_1}\hat{y}_{k_2}^*e^{2\pi i\frac{n(k_1-k_2)}{N}}+\hat{y}_{k_1}^*\hat{y}_{k_2}e^{-2\pi i\frac{n(k_1-k_2)}{N}}+|\hat{y}_{k_2}|^2)=\\ &=\frac{1}{N^3}\sum_{n=0}^{N-1}(|\hat{y}_{k_1}|^2+|\hat{y}_{k_2}|^2)=\\ &=\frac{|\hat{y}_{k_1}|^2+|\hat{y}_{k_2}|^2}{N^2}\end{aligned}$$ This extends to any $\textrm{len}(J)<N$. You have to write an algorithm that sorts the energies of the DFT components, and zeros them out in the inverse DFT in order for a given $\textrm{len}(J)$.