{"id":251,"date":"2023-12-19T04:19:49","date_gmt":"2023-12-19T04:19:49","guid":{"rendered":"https:\/\/neilfoxman.com\/?page_id=251"},"modified":"2024-05-30T17:36:51","modified_gmt":"2024-05-30T17:36:51","slug":"discrete-signals-and-systems","status":"publish","type":"page","link":"https:\/\/neilfoxman.com\/?page_id=251","title":{"rendered":"Discrete Signals"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Impulse_and_Step_Functions\"><\/span>Impulse and Step Functions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>$$<br>\\delta[n] = \\cases{<br>\\begin{align}<br>0 &amp;&amp;&amp; n \\neq 0 \\\\<br>1 &amp;&amp;&amp; n = 0 \\\\<br>\\end{align}<br>}<br>$$<\/p>\n\n\n\n<p>$$<br>u[n] = \\cases{<br>\\begin{align}<br>0 &amp;&amp;&amp; n &lt; 0 \\\\<br>1 &amp;&amp;&amp; n \\ge 0 \\\\<br>\\end{align}<br>}<br>$$<\/p>\n\n\n\n<p>Relationships of note<\/p>\n\n\n\n<p>$$<br>\\begin{align}<br>\\delta[n] &amp;= u[n] &#8211; u[n-1] \\\\<br>u[n] &amp;= \\sum_{k = -\\infty}^n \\delta[k] \\\\<br>\\end{align}<br>$$<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Discrete_Time_Frequency\"><\/span>Discrete Time Frequency<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\\(\\Omega\\) represents the discrete frequency<\/p>\n\n\n\n<p>\\[<br>\\begin{align}<br>\\Omega &amp;= \\frac{2 \\pi M}{N}<br>\\end{align}<br>\\]<\/p>\n\n\n\n<p>So, the complex exponential signal<\/p>\n\n\n\n<p>\\[<br>\\begin{align}<br>x[n] &amp;= e^{j \\Omega n} \\\\<br>x[n] &amp;= e^{j (2 \\pi M\/N) n} \\<br>\\end{align}<br>\\]<\/p>\n\n\n\n<p>will oscillate \\(M\\) times over \\(N\\) discrete time steps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Discrete_Time_Periodicity\"><\/span>Discrete Time Periodicity<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>For a discrete time signal \\(x[n]\\) to be periodic, it must satisfy<\/p>\n\n\n\n<p>\\[<br>\\begin{align}<br>\\forall n \\in \\mathbb{Z}, \\exists N \\in \\mathbb{Z} : x[n] = x[n+N]<br>\\end{align}<br>\\]<\/p>\n\n\n\n<p>Therefore, in the discrete case, we have the phenomenon where high frequency signals may appear like low frequency signals due to aliasing.  This is shown by analysis of the periodic signal<\/p>\n\n\n\n<p>\\[<br>\\begin{align}<br>x[n] &amp;= x[n+N] \\\\<br>e^{j \\Omega n} &amp;= e^{j \\Omega (n+N)} \\\\<br>e^{j \\Omega n} &amp;= e^{j \\Omega n} e^{j \\Omega N}  \\\\<br>1 &amp;= e^{j \\Omega N}  \\\\<br>\\end{align}<br>\\]<\/p>\n\n\n\n<p>In order to satisfy this result, we must have<\/p>\n\n\n\n<p>\\[<br>\\begin{align}<br>\\Omega N = 2 \\pi k &amp;&amp;k \\in \\mathbb{Z} \\\\<br>\\end{align}<br>\\]<\/p>\n\n\n\n<p>Another way to look at this is that for a signal to be periodic in discrete time, the quantity \\(\\Omega \/ 2 \\pi\\) must be rational.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Discrete_Frequency_Periodicity\"><\/span>Discrete Frequency Periodicity<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Consider complex exponential with frequency \\(\\Omega_1 = \\Omega_0 + 2\\pi\\).  <\/p>\n\n\n\n<p>\\[<br>\\begin{align}<br>e^{j \\Omega_1 n} = e^{j (\\Omega_0 + 2\\pi) n} \\\\<br>e^{j \\Omega_1 n} = e^{j \\Omega_0 n} e^{j 2 \\pi n} \\\\<br>\\end{align}<br>\\]<\/p>\n\n\n\n<p>But because \\(\\forall n \\in \\mathbb{Z}, e^{j (2\\pi n)} = e^{j 2\\pi} = 1\\), this is simplified to<\/p>\n\n\n\n<p>\\[<br>e^{j \\Omega_1 n} = e^{j \\Omega_0 n}<br>\\]<\/p>\n\n\n\n<p>so effectively in discrete time signals, the discrete frequency will repeat every \\(2 \\pi\\)<\/p>\n\n\n\n<p>\\[<br>\\begin{align}<br>\\Omega = \\Omega_0 \\pm 2\\pi k &amp;&amp;k \\in \\mathbb{Z}<br>\\end{align}<br>\\]<\/p>\n\n\n\n<p>Lower frequencies are near \\(0\\) or \\(2\\pi\\) while higher frequencies are near \\(\\pm\\pi\\)<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d31fce278e5&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d31fce278e5\" class=\"wp-block-image size-full has-custom-border is-style-rounded is-style-rounded--1 wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1004\" height=\"667\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"http:\/\/neilfoxman.com\/wp-content\/uploads\/2023\/12\/image-20210303212117130.png\" alt=\"\" class=\"wp-image-128\" style=\"border-radius:15px;object-fit:cover\" srcset=\"https:\/\/neilfoxman.com\/wp-content\/uploads\/2023\/12\/image-20210303212117130.png 1004w, https:\/\/neilfoxman.com\/wp-content\/uploads\/2023\/12\/image-20210303212117130-300x199.png 300w, https:\/\/neilfoxman.com\/wp-content\/uploads\/2023\/12\/image-20210303212117130-768x510.png 768w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Sampling_Property\"><\/span>Sampling Property<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>An impulse at time $n_0$ scaled by an entire signal is equivalent to an impulse at $n_0$ scaled just by the value $x[n_0]$.  That is<\/p>\n\n\n\n<p>$$<br>x[n] \\delta[n &#8211; n_0] = x[n_0] \\delta[n &#8211; n_0]<br>$$<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Sifting_Property\"><\/span>Sifting Property<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Sifting property is essentially an extension of the sampling property described above, where an alternative representation for $x[n]$ can be produced as a sum of all sampled values.  In other words, a signal can be represented as a sum of unit impulses scaled by the signal at that time, $n$.<\/p>\n\n\n\n<p>$$<br>\\begin{align}<br><br>x[n] &amp;= \\dots + x[-2] \\delta[n + 2] + x[-1] \\delta[n + 1] + x[0] \\delta[n] + x[1] \\delta[n &#8211; 1] + x[2] \\delta[n &#8211; 2] + \\dots \\\\<br><br>x[n] &amp;= \\sum_{k = -\\infty}^{\\infty} x[k] \\delta[n-k] \\\\<br><br>\\end{align}<br>$$<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d31fce2838d&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d31fce2838d\" class=\"wp-block-image aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"824\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"http:\/\/neilfoxman.com\/wp-content\/uploads\/2023\/12\/image-20220117131615609.png\" alt=\"\" class=\"wp-image-263\" srcset=\"https:\/\/neilfoxman.com\/wp-content\/uploads\/2023\/12\/image-20220117131615609.png 566w, https:\/\/neilfoxman.com\/wp-content\/uploads\/2023\/12\/image-20220117131615609-206x300.png 206w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Power\"><\/span>Power<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Power\/Energy quantities tend to use squared terms<br><br>$$<br>\\begin{align}<br>E_{\\infty} &amp;= \\sum_{n = n_1}^{n_2} |x[n]|^2 \\\\<br>P_\\infty &amp;= \\lim_{N \\to \\infty} \\left[ \\frac{1}{2N+1} \\sum_{n=-N}^{N} |x[n]|^2 \\right] \\\\<br>\\end{align}<br>$$<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Impulse and Step Functions $$\\delta[n] = \\cases{\\begin{align}0 &amp;&amp;&amp; n \\neq 0 \\\\1 &amp;&amp;&amp; n = 0 \\\\\\end{align}}$$ $$u[n] = \\cases{\\begin{align}0 &amp;&amp;&amp; n &lt; 0 \\\\1 &amp;&amp;&amp; n \\ge 0 \\\\\\end{align}}$$ Relationships of note $$\\begin{align}\\delta[n] &amp;= u[n] &#8211; u[n-1] \\\\u[n] &amp;= \\sum_{k = -\\infty}^n \\delta[k] \\\\\\end{align}$$ Discrete Time Frequency \\(\\Omega\\) represents the discrete frequency \\[\\begin{align}\\Omega &amp;= [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":106,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-251","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/neilfoxman.com\/index.php?rest_route=\/wp\/v2\/pages\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/neilfoxman.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/neilfoxman.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/neilfoxman.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/neilfoxman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=251"}],"version-history":[{"count":21,"href":"https:\/\/neilfoxman.com\/index.php?rest_route=\/wp\/v2\/pages\/251\/revisions"}],"predecessor-version":[{"id":751,"href":"https:\/\/neilfoxman.com\/index.php?rest_route=\/wp\/v2\/pages\/251\/revisions\/751"}],"up":[{"embeddable":true,"href":"https:\/\/neilfoxman.com\/index.php?rest_route=\/wp\/v2\/pages\/106"}],"wp:attachment":[{"href":"https:\/\/neilfoxman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}