The WienerFiltering function denoises spectral data using a Wiener filter and Welch’s PSD estimation, reducing noise in the frequency domain based on a specified noise variance. Parameters such as segment length, overlap, and FFT size enable fine-tuning of the PSD estimation. This approach effectively reduces additive noise while preserving the underlying signal, making it well-suited for spectral and time-series data processing applications.