File:8-point_Hann_windows.svg
From Wikipedia, the free encyclopedia
![File:8-point Hann windows.svg](http://upload.wikimedia.org/wikipedia/commons/thumb/9/99/8-point_Hann_windows.svg/700px-8-point_Hann_windows.svg.png)
Size of this PNG preview of this SVG file: 700 × 525 pixels. Other resolutions: 320 × 240 pixels | 640 × 480 pixels | 1,024 × 768 pixels | 1,280 × 960 pixels | 2,560 × 1,920 pixels.
Original file (SVG file, nominally 700 × 525 pixels, file size: 296 KB)
![]() | This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
Description8-point Hann windows.svg |
English: We illustrate two different ways to generate Hann window functions for spectral analysis applications. MATLAB calls them "symmetric" and "periodic". The latter is also called "DFT Even" in the classic Frederic Harris paper. |
|||
Date | ||||
Source | Own work | |||
Author | Bob K | |||
Permission (Reusing this file) |
I, the copyright holder of this work, hereby publish it under the following license:
|
|||
Other versions |
This file was derived from: 8-point Hann windows.png |
|||
SVG development InfoField | ![]() This vector image was created with GNU Octave. |
|||
Octave/Gnuplot source InfoField | click to expand
pkg load signal
graphics_toolkit gnuplot
L=5600;
window = hann(L);
N=8; % window size, in samples
warning("off")
dx = (L-1)/(N-1); % decimation factor for 7 hops (8 samples)
symmetric = window(1+(0:7)*dx); % take 8 of 8 symmetrical samples
dx = (L-1)/N; % decimation factor for 8 hops (9 samples)
periodic = window(1+(0:7)*dx); % take 8 of 9 symmetrical samples
%Replace above with the equivalent formulaic versions
%This step just proves that formulas match window() array.
symmetric = .5*(1-cos(2*pi*(0:N-1)/(N-1)));
periodic = .5*(1-cos(2*pi*(0:N-1)/N)); % aka "DFT Even"
%Compare equivalent noise bandwidths (info only)
ENBW_symmetric = N*sum(symmetric.^2)/sum(symmetric)^2
ENBW_periodic = N*sum(periodic.^2) /sum(periodic)^2
%Plot the coefficients as dots
hfig=figure
plot(0:7, symmetric, 'color', 'red', '.', 'MarkerSize', 10)
box off % no border around plot
hold on % same axes for next 3 plots
plot(0:7, periodic, 'color', 'blue', '.', 'MarkerSize', 10)
%Connect the dots
x = (0:L-1)*N/L;
plot(x, window, 'color', 'blue') % periodic
x = (0:L-1)*(N-1)/L;
plot(x, window, 'color', 'red') % symmetric
xlim([0 8])
set(gca,'FontSize',14)
set(gca, "yaxislocation", "origin")
set(gca, 'xgrid', 'on');
set(gca, 'ygrid', 'on');
set(gca, 'ytick', [0:.25:1]);
set(gca, 'xtick', [0:8]);
text(3.3, 0.27, 'Matlab "symmetric" \rightarrow', 'color', 'red', 'FontSize',12)
str = {'\leftarrow Matlab "periodic"',' ("DFT-even")'};
text(5.5, 0.74, str, 'color', 'blue', 'FontSize',12)
title('Two 8-point Hann window functions', 'FontSize',12);
xlabel('\leftarrow n \rightarrow')
% I actually used the export function on the GNUPlot figure toolbar.
print(hfig,"-dsvg", "-S620,392","-color", 'C:\Users\BobK\8-point Hann windows.svg')
|
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
5 April 2016
image/svg+xml
85225e76bbfcc98f63a9157805838a6f085afc59
303,366 byte
525 pixel
700 pixel
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 13:02, 10 August 2019 | ![]() | 700 × 525 (296 KB) | Bob K | User created page with UploadWizard |
File usage
No pages on the English Wikipedia use this file (pages on other projects are not listed).
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Width | 560pt |
---|---|
Height | 420pt |
Retrieved from "https://en.wikipedia.org/wiki/File:8-point_Hann_windows.svg"