Tutorials Archives - GaussianWaves https://www.gaussianwaves.com/category/tutorials/ Signal Processing for Communication Systems Thu, 27 Jul 2023 05:42:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 https://i0.wp.com/www.gaussianwaves.com/gaussianwaves/wp-content/uploads/2016/02/cropped-gaussianwaves_logo_120_120.png?fit=32%2C32&ssl=1 Tutorials Archives - GaussianWaves https://www.gaussianwaves.com/category/tutorials/ 32 32 163393712 Matplotlib histogram and estimated PDF in Python https://www.gaussianwaves.com/2020/06/using-matplotlib-histogram-in-python/ https://www.gaussianwaves.com/2020/06/using-matplotlib-histogram-in-python/#respond Fri, 05 Jun 2020 08:28:31 +0000 https://www.gaussianwaves.com/?p=23331 Key focus: Shown with examples: let’s estimate and plot the probability density function of a random variable using Python’s Matplotlib histogram function. Generation of random variables with required probability distribution characteristic is of paramount importance in simulating a communication system. Let’s see how we can generate a simple random variable, estimate and plot the probability ... Read more

The post Matplotlib histogram and estimated PDF in Python appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/06/using-matplotlib-histogram-in-python/feed/ 0 23331
Linear regression using python – demystified https://www.gaussianwaves.com/2020/02/linear-regression-using-python/ https://www.gaussianwaves.com/2020/02/linear-regression-using-python/#respond Wed, 05 Feb 2020 06:52:00 +0000 https://www.gaussianwaves.com/?p=21765 Key focus: Let’s demonstrate basics of univariate linear regression using Python SciPy functions. Train the model and use it for predictions. Linear regression model Regression is a framework for fitting models to data. At a fundamental level, a linear regression model assumes linear relationship between input variables () and the output variable (). The input ... Read more

The post Linear regression using python – demystified appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/02/linear-regression-using-python/feed/ 0 21765
Generating simulated dataset for regression problems https://www.gaussianwaves.com/2020/01/generating-simulated-dataset-for-regression-problems-sklearn-make_regression/ https://www.gaussianwaves.com/2020/01/generating-simulated-dataset-for-regression-problems-sklearn-make_regression/#respond Fri, 31 Jan 2020 03:00:12 +0000 https://www.gaussianwaves.com/?p=21784 Key focus: Generating simulated dataset for regression problems using sklearn make_regression function (Python 3) is discussed in this article. Problem statement Suppose, a survey is conducted among the employees of a company. In that survey, the salary and the years of experience of the employees are collected. The aim of this data collection is to ... Read more

The post Generating simulated dataset for regression problems appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/01/generating-simulated-dataset-for-regression-problems-sklearn-make_regression/feed/ 0 21784
Plot audio file as time series using Scipy python https://www.gaussianwaves.com/2020/01/how-to-plot-audio-files-as-time-series-using-scipy-python/ https://www.gaussianwaves.com/2020/01/how-to-plot-audio-files-as-time-series-using-scipy-python/#comments Thu, 23 Jan 2020 07:41:29 +0000 https://www.gaussianwaves.com/?p=21714 Often the most basic step in signal processing of audio files, one would like to visualize an audio sample file as time-series data. Audio sounds can be thought of as an one-dimensional vector that stores numerical values corresponding to each sample. The time-series plot is a two dimensional plot of those sample values as a ... Read more

The post Plot audio file as time series using Scipy python appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/01/how-to-plot-audio-files-as-time-series-using-scipy-python/feed/ 1 21714
Plot FFT using Python – FFT of sine wave & cosine wave https://www.gaussianwaves.com/2020/01/how-to-plot-fft-in-python-fft-of-basic-signals-sine-and-cosine-waves/ https://www.gaussianwaves.com/2020/01/how-to-plot-fft-in-python-fft-of-basic-signals-sine-and-cosine-waves/#comments Wed, 22 Jan 2020 09:09:05 +0000 https://www.gaussianwaves.com/?p=21676 Key focus: Learn how to plot FFT of sine wave and cosine wave using Python. Understand FFTshift. Plot one-sided, double-sided and normalized spectrum using FFT. Introduction Numerous texts are available to explain the basics of Discrete Fourier Transform and its very efficient implementation – Fast Fourier Transform (FFT).  Often we are confronted with the need ... Read more

The post Plot FFT using Python – FFT of sine wave & cosine wave appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/01/how-to-plot-fft-in-python-fft-of-basic-signals-sine-and-cosine-waves/feed/ 1 21676
Fibonacci sequence in python – a short tutorial https://www.gaussianwaves.com/2020/01/fibonacci-series-in-python/ https://www.gaussianwaves.com/2020/01/fibonacci-series-in-python/#respond Mon, 20 Jan 2020 04:50:02 +0000 https://www.gaussianwaves.com/?p=21577 Key focus: Learn to generate Fibonacci sequence using Python. Python 3 is used in this tutorial. Fibonacci series is a sequence of numbers 0,1,1,2,3,5,8,13,… Let’s digress a bit from signal processing and brush up basic some concepts in python programming. Why python? Python is an incredibly versatile programming language that is used for everything from ... Read more

The post Fibonacci sequence in python – a short tutorial appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2020/01/fibonacci-series-in-python/feed/ 0 21577
Phase demodulation via Hilbert transform: Hands-on https://www.gaussianwaves.com/2017/06/phase-demodulation-using-hilbert-transform-application-of-analytic-signal/ https://www.gaussianwaves.com/2017/06/phase-demodulation-using-hilbert-transform-application-of-analytic-signal/#comments Tue, 06 Jun 2017 08:28:44 +0000 http://www.gaussianwaves.com/?p=14461 Key focus: Demodulation of phase modulated signal by extracting instantaneous phase can be done using Hilbert transform. Hands-on demo in Python & Matlab. Phase modulated signal: The concept of instantaneous amplitude/phase/frequency are fundamental to information communication and appears in many signal processing application. We know that a monochromatic signal of form x(t) = a cos(ω ... Read more

The post Phase demodulation via Hilbert transform: Hands-on appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2017/06/phase-demodulation-using-hilbert-transform-application-of-analytic-signal/feed/ 5 14461
Extract envelope, phase using Hilbert transform: Demo https://www.gaussianwaves.com/2017/04/extract-envelope-instantaneous-phase-frequency-hilbert-transform/ https://www.gaussianwaves.com/2017/04/extract-envelope-instantaneous-phase-frequency-hilbert-transform/#comments Mon, 24 Apr 2017 08:56:26 +0000 http://www.gaussianwaves.com/?p=14208 Key focus: Learn how to use Hilbert transform to extract envelope, instantaneous phase and frequency from a modulated signal. Hands-on demo using Python & Matlab. If you would like to brush-up the basics on analytic signal and how it related to Hilbert transform, you may visit article: Understanding Analytic Signal and Hilbert Transform Introduction The ... Read more

The post Extract envelope, phase using Hilbert transform: Demo appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2017/04/extract-envelope-instantaneous-phase-frequency-hilbert-transform/feed/ 14 14208
Understanding Analytic Signal and Hilbert Transform https://www.gaussianwaves.com/2017/04/analytic-signal-hilbert-transform-and-fft/ https://www.gaussianwaves.com/2017/04/analytic-signal-hilbert-transform-and-fft/#comments Thu, 20 Apr 2017 09:52:00 +0000 http://www.gaussianwaves.com/?p=14136 Key focus of this article: Understand the relationship between analytic signal, Hilbert transform and FFT. Hands-on demonstration using Python and Matlab. Introduction Fourier Transform of a real-valued signal is complex-symmetric. It implies that the content at negative frequencies are redundant with respect to the positive frequencies. In their works, Gabor [1] and Ville [2], aimed ... Read more

The post Understanding Analytic Signal and Hilbert Transform appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2017/04/analytic-signal-hilbert-transform-and-fft/feed/ 4 14136
Interpret FFT results – obtaining magnitude and phase information https://www.gaussianwaves.com/2015/11/interpreting-fft-results-obtaining-magnitude-and-phase-information/ https://www.gaussianwaves.com/2015/11/interpreting-fft-results-obtaining-magnitude-and-phase-information/#comments Thu, 19 Nov 2015 06:02:14 +0000 http://www.gaussianwaves.com/?p=10899 In the previous post, Interpretation of frequency bins, frequency axis arrangement (fftshift/ifftshift) for complex DFT were discussed. In this post, I intend to show you how to interpret FFT results and obtain magnitude and phase information. Outline For the discussion here, lets take an arbitrary cosine function of the form \(x(t)= A cos \left(2 \pi ... Read more

The post Interpret FFT results – obtaining magnitude and phase information appeared first on GaussianWaves.

]]>
https://www.gaussianwaves.com/2015/11/interpreting-fft-results-obtaining-magnitude-and-phase-information/feed/ 33 10899