Text this: Investigating the dynamics and uncertainties in portfolio optimization using the Fourier-Millen transform.