File:Comparison of periodogram and Welch methods of spectral density estimation.png

This graph image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}.
It is recommended to name the SVG file “Comparison of periodogram and Welch methods of spectral density estimation.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.
Category:Graph images that should use vector graphics#%20Comparison%20of%20periodogram%20and%20Welch%20methods%20of%20spectral%20density%20estimation.pngCategory:PNG that should use vector graphics

Summary

Description
English: The power spectral density of a segment of music is estimated by two different methods, for comparison.
Category:Accuracy disputes
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:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Category:CC-Zero#Comparison%20of%20periodogram%20and%20Welch%20methods%20of%20spectral%20density%20estimation.png
Category:Self-published work
PNG development
InfoField
Octave/gnuplot source
InfoField
click to expand

This graphic was created with the help of the following Octave script:

graphics_toolkit gnuplot
pkg load signal

load 'music.mat'    % adds variables wavedata and samplerate to the workspace
whos                % displays the workspace
%{music.mat was created by these steps in program Audacity:
   Open a stereo mp3 file.
   Right-click on the filename, and choose Split Stereo to Mono in the drop-down menu.
   Delete one channel.
   Highlight a section to be exported.
   Choose Export Selected Audio.
   Choose Save As Type:  Other Uncompressed Files.
   Under Options, set Header=MAT5 and Encoding=Signed 16-bit PCM
%}
periodogram (wavedata, [], 512, samplerate, 'twosided')
grid on
xlim([0 samplerate])
title("Periodogram",'FontSize', 14)
xlabel('Frequency (Hz)','FontSize', 14)
ylabel('Amplitude (dB)','FontSize', 14)

figure
pwelch(wavedata, hann(512), 0.25, 512, samplerate, 'twosided', 'dB')
grid on
xlim([0 samplerate])
ylim([-60 60])
title("Welch's method",'FontSize', 14)
xlabel('Frequency (Hz)','FontSize', 14)
ylabel('Amplitude (dB)','FontSize', 14)
Category:Created with GNU Octave Category:Digital signal processing Category:Images with Gnuplot source code Category:Images with Octave source code Category:Spectral power distribution
Category:Accuracy disputes Category:CC-Zero Category:Created with GNU Octave Category:Digital signal processing Category:Graph images that should use vector graphics Category:Images with Gnuplot source code Category:Images with Octave source code Category:PNG created with LibreOffice Category:PNG that should use vector graphics Category:Pages using deprecated source tags Category:Self-published work Category:Spectral power distribution