File:Slow fading Log-distance.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 654 × 600 pixels. Other resolutions: 262 × 240 pixels | 524 × 480 pixels | 864 × 792 pixels.
Original file (864 × 792 pixels, file size: 100 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]DescriptionSlow fading Log-distance.png |
English: The main components and the signal attenuations in Log-distance path loss model |
Date | |
Source | Own work |
Author | Kirlf |
PNG development InfoField | This plot was created with Matplotlib. |
Source code InfoField | Python codeimport numpy as np
from scipy import signal, interpolate
import matplotlib.pyplot as plt
# Slow fading series
N_samples = 200 # number of samples
log_mean = -80 # lognormal process mean [dB]
log_sigma = 5 # lognormal process variance [dB]
L_corr = 10 # correlation length [m]
ds = 1 # sampling wavelength
interp_rate = int(np.round(L_corr / ds)) # intrepolation rate
L_corr = interp_rate * ds # retain correlation length
# Gaussian series
gauss = np.random.randn(N_samples, 1)
gauss = [i[0] for i in gauss]
# The following hints are done according to [1] (project312):
d_axis1 = np.array([i for i in range(1, N_samples+1)])*L_corr - L_corr
d_axis2 = (np.arange(1, N_samples + 1, 1 / interp_rate) - 1)*L_corr
R_interpolated = interpolate.interp1d(d_axis1, gauss, bounds_error=False) # interpolation function
R_interpolated = R_interpolated(d_axis2)*log_sigma + log_mean # lognormal series [dB]
# Free space path loss (FSPL)
d = np.array([i for i in range(1, R_interpolated.shape[0]+1)])
L = (4*np.pi*d) / ds
FSPL = 20*np.log10(L)
# Log-normal path loss
LNPL = 10*2.0*np.log10(d)
# Plotting
plt.subplots(figsize=(12, 11))
ax1 = plt.subplot(212)
ax1.plot(30 - (R_interpolated+FSPL+LNPL))
ax1.set_xlabel("Traversed distance (m)")
ax1.set_ylabel('Signal level (dB)')
ax1.set_title('Signal attenuation in case of \n Log-distance path loss model')
ax1.grid(which='both', axis='both')
ax2 = plt.subplot(222)
ax2.plot(R_interpolated)
ax2.set_title('Random slow fading series')
ax2.set_xlabel('Traversed distance (m)')
ax2.set_ylabel('Slow variations \n with autocorrelation built in (dBm)')
ax2.grid(which='both', axis='both')
ax3 = plt.subplot(221)
ax3.plot(FSPL+LNPL, label="FSPL+LNPL")
ax3.plot(LNPL, label="LNPL")
ax3.plot(FSPL, label="FSPL")
ax3.set_xlabel('Traversed distance (m)')
ax3.set_ylabel('Path loss level (dB)')
ax3.set_title('Path loss')
ax3.grid(which='both', axis='both')
ax3.legend(loc="upper right")
plt.subplots_adjust(hspace = 0.3)
plt.savefig("slowfading.png")
# Reference
# 1. Fontan, F. P., Mayo, A., Marote, D., Prieto‐Cerdeira, R., Mariño, P., Machado, F., & Riera, N. (2008). Review of generative models for the narrowband # land mobile satellite propagation channel. International Journal of Satellite Communications and Networking, 26(4), 291-316.
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- 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 license, 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 license as the original.
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:39, 27 December 2021 | 864 × 792 (100 KB) | Kirlf (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Horizontal resolution | 28.34 dpc |
---|---|
Vertical resolution | 28.34 dpc |
Software used |