# Questions tagged [window-functions]

In signal processing, a window function is a mathematical function that is zero-valued outside of some chosen interval.

261 questions
Filter by
Sorted by
Tagged with
1answer
2k views

### Measure scalloping loss of window function

Is there an easy/general way to calculate this? For instance, the rectangular window has a maximum scalloping loss of 0.3634, which can be derived in frequency domain from a normalized ...
1answer
2k views

### DFT normalization for amplitude estimation

After an interesting recent answer, I'm doing some research on proper DFT normalization for sinusoidal peak estimation. It's clear that to get the correct amplitude from DFT peaks we need to normalize ...
1answer
91 views

### What is the range for alpha in window equations

Alpha is used in many window functions e.g. What is the range that alpha can take and is it the same across all uses of alpha in the equations? e.g. Will any alpha still result in a stable result, e....
2answers
34 views

### Window functions and indexes larger than N/2

How does the n index for a window with $0 \le |n| \le N/2$ e.g the Bohman window function, get implemented when having a specific window size? ...
1answer
146 views

### Fixing for windowing function in FFT

I've been learning about the FFT and about the usefulness of windowing functions. A problem I'm running into is the affect of windowing functions on the amplitude of signals in the FFT. For example, ...
4answers
945 views

### Windowing function squared?

Reading this paper about WSOLA (Verhelst, Roelands) (PDF) At page 2 there's a "time-warped STFT's synthesis function" involving $v(n)=w^2(n)$ which is a windowing function. A windowing function ...
1answer
88 views

### Running window maximum: Any cautions?

Are there any statistical concerns with using a running-window maximum to capture peak values? Background: We are measuring acceleration during random impacts on a structure. The impacts need ~500Hz ...
1answer
143 views

### Minimizing sinc spectral lobes

for some reasons I'd like to minimize the secondary lobes of the FFT transform of a rectangular signal (shwon in the upper-left side of picture below) so I've used window function to do that (bottom-...
2answers
12k views

### python scipy fft on numpy hanning window smears peaks

I have a signal that I have acquired from an experimental instrument, that I wish to examine in the frequency domain. I don't care about phase for this exercise, I only care about magnitude. I ...
1answer
145 views

### Applying a window to input signal

I am sorry if I say any thing silly .Please forgive me.I want to apply a window to input signals.I have two signals each of which contains zeros (462 samples) and non zeros data (38 samples).I want my ...
0answers
165 views

### Analysis with Window before FFT

I have two signals $x$ (see below) and $k$ (obtained by giving circular shift of 106.5849 in $x$). Before I take FFT of both ($x$ and $k$) I want to do window analysis on them. Kindly can some one ...
0answers
190 views

### Lost power while using FFT with apodizing mask

Previously I asked this question about FFT artifacts. The solution that is most easily implemented is using an apodizing mask on the original image, tapering the borders to zero making the image left-...
2answers
2k views

### Fourier transform artifacts

My starting point in what follows is a radially symmetric random field. Taking the Fourier transform of this (and plotting it in logarithm to highlight the patterns), I obtain the following image in ...
1answer
183 views

### Non-separable, higher-order generalized cosine windows in 2D for images

Higher-order generalized cosine windows define a useful parametric family of windows functions, embedding Hamming, Hann, Blackman, Nutall, etc.: w(n) = \sum_{k = 0}^{K} a_k\; \cos\left( \frac{2 \pi ...
1answer
412 views

### How is the ends of a bandpass filtered signal reliable after applying the cosine taper?

A taper function decaying to zero at ends such as a cosine window is routinely applied to the signal before bandpass filtering to reduce end effects. Obviously the window alters the waveform. So, as ...
1answer
160 views

### is any filter whose impulse response has a discontinuity in the first derivative fundamentally high-pass?

a triangular (bartlett) window has a kink (discontinuity in first derivative). thinking in the continuous (not discrete) case, my intuition is that the fourier transform of any window with a kink ...
0answers
349 views

### hamming window for LPC

I am working on a library for generating LPC for speech synthesis. I am currently using a hamming window for the spectral analysis which goes in 200ms blocks over the signal, and does the a-to-k ...
1answer
587 views

### PSD scaling due to the windowing

I am struggling with the following problem for a while: If I have signal of duration N and I apply window (assume rectangular window) of size M < N how will this influence PSD of that signal after ...
1answer
726 views

### Hamming window for filtering unwanted terms

I am trying to filter off two unwanted terms in this frequency spectrum (the spectrum on top). First, I used a convolution between a rectangular window to make the unwanted terms equal to zero. the ...
3answers
881 views

### Apply the Hamming window to a sinusoidal signal

I am a novice in signal processing. I am writing a code to apply the hamming window to a sinusoidal signal. So first I have digitized my sinusoidal signal by choosing a sampling rate more than twice ...
1answer
1k views

### How to Combine FFT Overlap Results?

We currently have C/C++ FFT code with Hann Window function support. For a large data (over 10,000) we want to split this into 1024 samples with 50% overlap. For each 1024 sample, we window and fft. ...
1answer
210 views

### what is the preffered data and FFT length for blackman harris window for improving Accuracy due to ENBW Consideration of window?

for Rectangular window if data length is 1K then FFT Length Should be 1K FFT only because ENBW of rectangualr window is 1.0 but for Minimum 4-Sanple BlackmannHarris window is 2.0. so for improving ...
2answers
2k views

### MATLAB : How to filter a data signal

I have a data signal (column vector) with N values taken over at specific sample rate (dx) at a fixed frequency. After taking the Fourrier transform of this signal and representing it in the Fourier ...
0answers
639 views

2answers
472 views

### Reconstruction of a windowed signal (specifically Hamming windowed)

Wondering about the resconstruction of the input signal when an overlapped windowing function has been applied. I'm specifically applying a Hamming window with 50% overlap and I wish to reconstruct ...
1answer
193 views

### Sensitiviy and Resolution in Windowing Functions

When I read the article Windowing Functions, there are two terms that are does not understanding them well, sensitiviy and resolution. I looked for this two terms on the web, And I conclude that ...
2answers
402 views

### Discontinuity at the edge of Chebychev window

I am using Chebychev window for its narrow main lobe. The problem of chebychev window is that it has discontinuities at the edge, and it seems that Taylor window solves this issue. More detail: http:...
1answer
331 views

### What windowed Sinc might be closest to a Parks–McClellan low-pass filter?

In another question on dsp.stackexchange, a statement was made that the output of MATLAB firpm() or firls() for an anti-alias low-pass filter was "close" to the coefficients of a windowed-Sinc low-...
3answers
127 views

### MATLAB Hamming window

I have been trying to achieve a Hamming window length of 23 using the equation. I tried several coding, one of the is the one below: ...
1answer
1k views

### Power Spectrum in dBFs

I'm trying to get the spectrum of my signal in dBFS units. I'm not sure what is the refernce that I should devide by. I computed the power spectrum as follows: 1) FFT normalized to the number of ...
1answer
229 views

### What is the cause of slow roll off of windowed filters

Exactly why using the of windowing function, such as Hamming or Blackman, causes a slower transition to stop band? Everywhere it is mentioned just as an obvious fact that this happens but I haven't ...
0answers
130 views

### Audio output distorted with any FFT Windowing other than rectangular

For an experiment i have a simple application that takes a quadrature signal from a radio and then does the following: Complex FFT -> Inverse FFT -> Cartesian to Polar -> audio out If I tune the radio ...
1answer
255 views

### Subsampling data: terminology

I'm writing software and the data reporting frequency is slower than the acquisition cycle, so effectively sub-sampling is being done. Different data types require different methods of sub-sampling ...
2answers
1k views

### segmenting an EEG data

I have an EEG labeled data, which is the data that used for training, And I want to segment those data based on the time of EEG signal (Time-based Epoching) as a preprocessing step, based on the ...
2answers
2k views

### Computing main lobe width of Hamming window in Matlab by plotting

I wanted to verify the fact that main lobe width of a Hann/Hamming window is twice that of a rectangular window, using Matlab. I computed the analytical expressions for the respective frequency ...
2answers
384 views

### Increasing the number of points in the frequency spectrum

I have an image with few pixels in length and height. For this image I calculated the two dimensional Fourier transformation. What I got for the frequency spectrum in one direction was a very ...
1answer
18k views

### How should I select window size and overlap?

I'm new to DSP and I have a wav file with a number of different frequencies playing at different volumes. I'd like to plot the power of the 350Hz frequency signal at each point in time. The source is ...
0answers
62 views

### Relation between Gaussian and Savitsky-Golay kernels

I would like to make a mathematical comparison between two methods in my field. One smooths with a Gaussian filter, and one smooths using a second-order Savitsky-Golay filter. Let's say the window ...
1answer
143 views

### Window function for signal with 3-5 sine waves inside

Should I apply some window before FFT if I want to find 5 frequencies in signal? Signal is pure 5 sinusoids + some noise generated during recording on analog cable.
1answer
3k views

### What is the relation of the transition band's width and the filter order for the FIR windowing method

When designing an FIR filter using the windowing method, how can one estimate the filter order ? It's obvious that the type of window and the transitions band's width has some effect on the order.
2answers
1k views

### Why are there so many windowing functions?

Many windowing functions are listed here in the Mathematica documentation. I tried using a few to reduce leakage when computing a Discrete Fourier Transform. From what I could tell it made little ...
2answers
168 views

### Fixing my FFT Plot

I'm trying to plot my FFT of File. This i my result. I made my FFT application: I want to obtain something very similar to plot of WaveSpectra, please tell me my mistakes.. My FFT The result from ...
2answers
1k views

### Is it necessary to apply some window method, to obtain the FFT? Java

I read that the window is needed to apply filter (Low Pass, High Pass, Band Pass or band Stop), but not for the FFT. 1. What advantage does apply a window or disadvantage does not apply? 2. What ...
0answers
248 views

### BandPass and StopBand FIR filters (Hamming) is not working

I have two groups of 3 frequencies of tone (music), First Group Tones: 39 (77.7817 Hz), 40 (82.4069 Hz) and 41 (87.3070 Hz). Second Group ...
4answers
3k views

### Extending 1D window functions to 3D (or higher)

(cross post of SO: https://stackoverflow.com/questions/27345861/extending-1d-function-across-3-dimensions-for-data-windowing ) For the sake of image (volume) registration, I'd like to apply a ...
1answer
12k views

### STFT: why overlapping the window?

For STFT, we impose window of certain size onto the original signal, then we perform fft on each window. The uncertanty about frequency and time is determined by the width of the window, however, I ...
0answers
361 views

### Reducing latency due to FFT windowing for a real-time signal

I need to compute the amplitude of a certain frequency band as the input to a PID algorithm. My system looks like this: ...
2answers
289 views

### Where do we use windowing?

I have been studying about the box window and am unable to understand one thing, do we first sample a signal and then window it resulting in up-scaling or downscaling, or is windowing a practical case ...
1answer
872 views

### FFT on Hamming Window Function [duplicate]

I want to apply Hamming window function the Audio sample then find out its fft.. ...