File:Periodogram.png
From Vigyanwiki
Periodogram.png
Size of this preview: 800 × 533 pixels. Other resolutions: 320 × 213 pixels | 640 × 427 pixels | 1,024 × 683 pixels | 1,500 × 1,000 pixels.
Original file (1,500 × 1,000 pixels, file size: 50 KB, MIME type: image/png)
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
DescriptionPeriodogram.png |
English: Developed using scipy.signal.periodogram. |
Date | |
Source | Own work |
Author | Kirlf |
Other versions |
|
PNG genesis InfoField | This plot was created with Matplotlib |
Source code InfoField | Python codeimport numpy as np
from scipy import signal
import matplotlib.pyplot as plt
w_1 = 30 # frequency of the 1st component of the signal (Hz)
w_2 = 50 # frequency of the 2nd component of the signal (Hz)
a = 1.1 # magnitude of the 1st component of the signal
b = 0.6 # magnitude of the 2nd component of the signal
t = np.array([i for i in range(1,301)])/1000 # time samples (s)
fs = 1 / (t[1]-t[0]) # sampling frequency (Hz)
x = a*np.cos(2*np.pi*w_1*t) + b*np.sin(2*np.pi*w_2*t) # considered signal
f, Pxx_den = signal.periodogram(x, fs=fs, scaling='spectrum')
plt.subplots(1, 1, figsize=(6, 4), dpi=250)
plt.stem(f[:50], Pxx_den[:50], '-')
plt.ylabel('Spectrum')
plt.xlabel('Frequencies (Hz)')
plt.title('Periodogram')
plt.grid(True)
plt.show()
|
Licensing
I, the copyright holder of this work, hereby publish it under the following licence:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International licence.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the licence, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible licence as the original.
Items portrayed in this file
depicts
20 February 2019
image/png
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 10:51, 20 February 2019 | 1,500 × 1,000 (50 KB) | wikimediacommons>Kirlf | User created page with UploadWizard |
File usage
The following 2 pages use this file:
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitise it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Horizontal resolution | 98.42 dpc |
---|---|
Vertical resolution | 98.42 dpc |
Software used |
|
Retrieved from ‘https://www.vigyanwiki.in/wiki/File:Periodogram.png’