# Questions tagged [window-functions]

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

255 questions
Filter by
Sorted by
Tagged with
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 ...
140 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-...
11k 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 ...
143 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 ...
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 ...
177 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-...
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 ...
170 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 ...
379 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 ...
152 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 ...
337 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 ...
557 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 ...
681 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 ...
820 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 ...
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. ...
197 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 ...
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 ...
588 views

438 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 ...
178 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 ...
384 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:...
315 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-...
118 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: ...
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 ...
223 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 ...
126 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 ...
203 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 ...
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 ...
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 ...
365 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 ...
17k 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 ...
59 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 ...
135 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.
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.
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 ...
165 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 ...
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 ...
245 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 ...
2k 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 ...
11k 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 ...
338 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: ...
281 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 ...
713 views

### FFT on Hamming Window Function [duplicate]

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

### Hanning Window Formula - Matlab didn't work

I'm trying to do the Hanning Window manually but didn't work, what I'm doing wrong? t=[0:.1:10]; x=.5-.5*cos(2*pi*t/102); plot(x); Not sure why I cant obtain the ...
333 views

### Spacing between gaussian windows for STFT

I'm computing discrete short time Fourier transform. Data is split into overlapping chunks and gaussian window is used for each chunk. However, I'm not sure how much overlap there should be between ...
11k views

### Is it customary to correct for the gain of a window?

Consider how the Hanning window is defined: 0.5 - 0.5 * cos(n*2*Pi/(N-1)) By this definition, it has a gain of 0.5, which is simply the average value of the ...
83 views

### Overlap-windowing vs preserved information

When windowing non-overlapped segments of data stream, part of the data is being "ignored" at the boundaries of the segments due to the tapering of window functions (non-rectangular). Some information ...