Add custom CSS
This commit is contained in:
parent
fec84e305f
commit
14b54fb912
49
css/custom.css
Normal file
49
css/custom.css
Normal file
@ -0,0 +1,49 @@
|
||||
.figure p{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.figure img{
|
||||
max-width:100%;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.org-src-container > pre.src:before {
|
||||
display: inline;
|
||||
position: absolute;
|
||||
color: #808080;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
left: 10px;
|
||||
padding: 0px 4px;
|
||||
border: 1px solid #d0d0d0;
|
||||
font-size: 80%;
|
||||
}
|
||||
.org-src-container > pre {
|
||||
margin-top: 1.5em;
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
}
|
||||
.org-src-container > pre > code.src:before {
|
||||
display: inline;
|
||||
position: absolute;
|
||||
color: #808080;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
left: 10px;
|
||||
padding: 0px 4px;
|
||||
border: 1px solid #d0d0d0;
|
||||
font-size: 80%;
|
||||
}
|
||||
.org-src-container > pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
.org-src-container > pre.src-elisp:before { content: 'Emacs Lisp'; }
|
||||
.org-src-container > pre.src-sh:before { content: 'shell'; }
|
||||
.org-src-container > pre.src-bash:before { content: 'bash'; }
|
||||
.org-src-container > pre.src-org:before { content: 'Org mode'; }
|
||||
.org-src-container > pre.src-python:before { content: 'Python'; }
|
||||
.org-src-container > pre.src-matlab:before { content: 'Matlab'; }
|
@ -513,7 +513,7 @@ legend{
|
||||
padding:0;
|
||||
white-space:normal}
|
||||
|
||||
.fa:before,#content .admonition-title:before,#content h1 .headerlink:before,#content h2 .headerlink:before,#content h3 .headerlink:before,#content h4 .headerlink:before,#content h5 .headerlink:before,#content h6 .headerlink:before,#content dl dt .headerlink:before,.icon:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-alert,#content .note,#content .attention,#content .caution,#content .danger,#content .error,#content .hint,#content .important,#content .tip,#content .warning,#content .seealso,#content .admonitiontodo,.btn,input[type="text"],input[type="password"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="week"],input[type="number"],input[type="search"],input[type="tel"],input[type="color"],select,textarea,#table-of-contents li.on a,#table-of-contents li.current>a,.wy-side-nav-search>a,.wy-side-nav-search .wy-dropdown>a,.wy-nav-top a{
|
||||
.fa:before,#content .admonition-title:before,#content h1 .headerlink:before,#content h2 .headerlink:before,#content h3 .headerlink:before,#content h4 .headerlink:before,#content h5 .headerlink:before,#content h6 .headerlink:before,#content dl dt .headerlink:before,.icon:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-alert,#content .note,#content .attention,#content .caution,#content .danger,#content .error,#content .summary,#content .hint,#content .important,#content .tip,#content .warning,#content .question,#content .seealso,#content .admonitiontodo,.btn,input[type="text"],input[type="password"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="week"],input[type="number"],input[type="search"],input[type="tel"],input[type="color"],select,textarea,#table-of-contents li.on a,#table-of-contents li.current>a,.wy-side-nav-search>a,.wy-side-nav-search .wy-dropdown>a,.wy-nav-top a{
|
||||
-webkit-font-smoothing:antialiased}
|
||||
|
||||
/*!
|
||||
@ -576,7 +576,7 @@ a .fa,a #content .admonition-title,#content a .admonition-title{
|
||||
.nav #content .admonition-title,#content .nav .admonition-title,.nav .icon{
|
||||
display:inline}
|
||||
|
||||
.wy-alert,#content .note,#content .attention,#content .caution,#content .danger,#content .error,#content .hint,#content .important,#content .tip,#content .warning,#content .seealso,#content .admonitiontodo{
|
||||
.wy-alert,#content .note,#content .attention,#content .caution,#content .danger,#content .error,#content .summary,#content .hint,#content .important,#content .tip,#content .warning,#content .question,#content .seealso,#content .admonitiontodo{
|
||||
padding:12px;
|
||||
line-height:24px;
|
||||
margin-bottom:24px;
|
||||
@ -596,32 +596,45 @@ a .fa,a #content .admonition-title,#content a .admonition-title{
|
||||
#content .danger,#content .error{
|
||||
background:#fdf3f2}
|
||||
|
||||
.wy-alert.wy-alert-warning,#content .wy-alert-warning.note,#content .attention,#content .caution,#content .wy-alert-warning.danger,#content .wy-alert-warning.error,#content .wy-alert-warning.hint,#content .wy-alert-warning.important,#content .wy-alert-warning.tip,#content .warning,#content .wy-alert-warning.seealso,#content .admonitiontodo{
|
||||
.wy-alert.wy-alert-warning,#content .wy-alert-warning.note,#content .attention,#content .caution,#content .wy-alert-warning.danger,#content .wy-alert-warning.error,#content .wy-alert-warning.summary,#content .wy-alert-warning.hint,#content .wy-alert-warning.important,#content .wy-alert-warning.tip,#content .warning,#content .wy-alert-warning.seealso,#content .admonitiontodo{
|
||||
background:#ffedcc}
|
||||
|
||||
#content .admonition-title.note:before, #content .admonition-title.seealso:before,
|
||||
#content .admonition-title.warning:before, #content .admonition-title.caution:before,
|
||||
#content .admonition-title.warning:before,
|
||||
#content .admonition-title.caution:before,
|
||||
#content .admonition-title.attention:before,
|
||||
#content .admonition-title.tip:before, #content .admonition-title.hint:before,
|
||||
#content .admonition-title.important:before,
|
||||
#content .admonition-title.error:before, #content .admonition-title.danger:before{
|
||||
#content .admonition-title.error:before,
|
||||
#content .admonition-title.danger:before{
|
||||
font-family:FontAwesome;
|
||||
content: "";}
|
||||
|
||||
#content .note,#content .seealso{
|
||||
#content .admonition-title.question:before{
|
||||
font-family:FontAwesome;
|
||||
content: "";}
|
||||
|
||||
#content .admonition-title.note:before,
|
||||
#content .admonition-title.seealso:before,
|
||||
#content .admonition-title.tip:before,
|
||||
#content .admonition-title.summary:before,
|
||||
#content .admonition-title.hint:before{
|
||||
font-family:FontAwesome;
|
||||
content: "";}
|
||||
|
||||
|
||||
#content .note,#content .question,#content .seealso{
|
||||
background:#e7f2fa}
|
||||
|
||||
.wy-alert p:last-child,#content .note p:last-child,#content .attention p:last-child,#content .caution p:last-child,#content .danger p:last-child,#content .error p:last-child,#content .hint p:last-child,#content .important p:last-child,#content .tip p:last-child,#content .warning p:last-child,#content .seealso p:last-child,#content .admonitiontodo p:last-child{
|
||||
.wy-alert p:last-child,#content .note p:last-child,#content .attention p:last-child,#content .caution p:last-child,#content .danger p:last-child,#content .error p:last-child,#content .summary p:last-child,#content .hint p:last-child,#content .important p:last-child,#content .tip p:last-child,#content .warning p:last-child,#content .question p:last-child,#content .seealso p:last-child,#content .admonitiontodo p:last-child{
|
||||
margin-bottom:0}
|
||||
|
||||
#content .admonition-title.tip,#content .admonition-title.important,#content .admonition-title.hint{
|
||||
#content .admonition-title.tip,#content .admonition-title.important,#content .admonition-title.summary,#content .admonition-title.hint{
|
||||
line-height: 1;
|
||||
background:#1abc9c}
|
||||
|
||||
#content .important,#content .tip,#content .hint{
|
||||
#content .important,#content .tip,#content .summary,#content .hint{
|
||||
background:#dbfaf4}
|
||||
|
||||
#content .admonition-title.note,#content .admonition-title.seealso{
|
||||
#content .admonition-title.note,#content .admonition-title.question,#content .admonition-title.seealso{
|
||||
line-height: 1;
|
||||
background:#6ab0de}
|
||||
|
||||
@ -938,7 +951,7 @@ footer p{
|
||||
font-style:italic;
|
||||
}
|
||||
|
||||
#content .note .last,#content .attention .last,#content .caution .last,#content .danger .last,#content .error .last,#content .hint .last,#content .important .last,#content .tip .last,#content .warning .last,#content .seealso .last,#content .admonitiontodo .last{
|
||||
#content .note .last,#content .attention .last,#content .caution .last,#content .danger .last,#content .error .last,#content .hint .summary,#content .hint .last,#content .important .last,#content .tip .last,#content .warning .last,#content .question .last,#content .seealso .last,#content .admonitiontodo .last{
|
||||
margin-bottom:0}
|
||||
|
||||
#content .admonition-title:before{
|
||||
|
257
index.html
257
index.html
@ -3,17 +3,16 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-10-29 jeu. 13:28 -->
|
||||
<!-- 2020-11-11 mer. 13:53 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Spectral Analysis using Matlab</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
<meta name="author" content="Dehaeze Thomas" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/zenburn.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="./css/custom.css"/>
|
||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
<script>MathJax = {
|
||||
tex: {
|
||||
@ -35,43 +34,43 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org4ea4bb6">1. Spectral Analysis - Basics</a>
|
||||
<li><a href="#org088a1b1">1. Spectral Analysis - Basics</a>
|
||||
<ul>
|
||||
<li><a href="#orgda127f7">1.1. Sensitivity of the instrumentation</a></li>
|
||||
<li><a href="#org9909e42">1.2. Convert the time domain from volts to velocity</a></li>
|
||||
<li><a href="#orgf4f2d76">1.3. Power Spectral Density and Amplitude Spectral Density</a></li>
|
||||
<li><a href="#org258225a">1.4. Modification of a signal’s Power Spectral Density when going through an LTI system</a></li>
|
||||
<li><a href="#orgb03afa2">1.5. From PSD of the velocity to the PSD of the displacement</a></li>
|
||||
<li><a href="#org7213bb6">1.6. Cumulative Power/Amplitude Spectrum</a></li>
|
||||
<li><a href="#orgd737eb1">1.1. Sensitivity of the instrumentation</a></li>
|
||||
<li><a href="#org560596c">1.2. Convert the time domain from volts to velocity</a></li>
|
||||
<li><a href="#orgec36aea">1.3. Power Spectral Density and Amplitude Spectral Density</a></li>
|
||||
<li><a href="#org02a257a">1.4. Modification of a signal’s Power Spectral Density when going through an LTI system</a></li>
|
||||
<li><a href="#orgdcf3ecc">1.5. From PSD of the velocity to the PSD of the displacement</a></li>
|
||||
<li><a href="#org4c5249b">1.6. Cumulative Power/Amplitude Spectrum</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc5d7f7c">2. Time domain signal that approximate a PSD - TF technique</a>
|
||||
<li><a href="#org2810914">2. Time domain signal that approximate a PSD - TF technique</a>
|
||||
<ul>
|
||||
<li><a href="#org87dbd31">2.1. Signal’s PSD</a></li>
|
||||
<li><a href="#orgafa300b">2.2. Transfer Function that approximate the ASD</a></li>
|
||||
<li><a href="#org2e76767">2.3. Generated Time domain signal</a></li>
|
||||
<li><a href="#org8e5d2ed">2.4. Comparison of the Power Spectral Densities</a></li>
|
||||
<li><a href="#orgaada5a7">2.5. Simulink</a></li>
|
||||
<li><a href="#org1a03b54">2.1. Signal’s PSD</a></li>
|
||||
<li><a href="#orgae722c1">2.2. Transfer Function that approximate the ASD</a></li>
|
||||
<li><a href="#org0c62275">2.3. Generated Time domain signal</a></li>
|
||||
<li><a href="#org3713bc7">2.4. Comparison of the Power Spectral Densities</a></li>
|
||||
<li><a href="#org35debdf">2.5. Simulink</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3a2fa99">3. Time domain signal that approximate a PSD - IFFT technique</a>
|
||||
<li><a href="#org00702f7">3. Time domain signal that approximate a PSD - IFFT technique</a>
|
||||
<ul>
|
||||
<li><a href="#org7641a6d">3.1. Signal’s PSD</a></li>
|
||||
<li><a href="#orga81034f">3.2. Algorithm</a></li>
|
||||
<li><a href="#org3e713d3">3.3. Obtained Time Domain Signal</a></li>
|
||||
<li><a href="#org4bb1a77">3.4. PSD Comparison</a></li>
|
||||
<li><a href="#org1700082">3.1. Signal’s PSD</a></li>
|
||||
<li><a href="#org4ce31b2">3.2. Algorithm</a></li>
|
||||
<li><a href="#orga9ef28c">3.3. Obtained Time Domain Signal</a></li>
|
||||
<li><a href="#org92e1c44">3.4. PSD Comparison</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org92be944">4. Compute the Noise level and Signal level from PSD</a>
|
||||
<li><a href="#orgce7f3a9">4. Compute the Noise level and Signal level from PSD</a>
|
||||
<ul>
|
||||
<li><a href="#org6caf1d0">4.1. Time Domain Signal</a></li>
|
||||
<li><a href="#orga570861">4.2. Estimation of the magnitude of a deterministic signal</a></li>
|
||||
<li><a href="#org56203f4">4.3. Estimation of the noise level</a></li>
|
||||
<li><a href="#org57f2f45">4.1. Time Domain Signal</a></li>
|
||||
<li><a href="#org3f32ef0">4.2. Estimation of the magnitude of a deterministic signal</a></li>
|
||||
<li><a href="#org5ab6d13">4.3. Estimation of the noise level</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7b2b4f0">5. Further Notes</a>
|
||||
<li><a href="#orgda903f8">5. Further Notes</a>
|
||||
<ul>
|
||||
<li><a href="#orgd6e567c">5.1. PSD of ADC quantization noise</a></li>
|
||||
<li><a href="#orge7125fc">5.1. PSD of ADC quantization noise</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -87,25 +86,25 @@ Some matlab documentation about Spectral Analysis can be found <a href="https://
|
||||
</p>
|
||||
|
||||
<p>
|
||||
First, in section <a href="#org0a7c94e">1</a>, some basics of spectral analysis are presented.
|
||||
First, in section <a href="#orgfea9539">1</a>, some basics of spectral analysis are presented.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
In some cases, we want to generate a time domain signal with defined Power Spectral Density.
|
||||
Two methods are presented in sections <a href="#orgaf2a606">2</a> and <a href="#org34ffc87">3</a>.
|
||||
Two methods are presented in sections <a href="#org1401958">2</a> and <a href="#org8fad482">3</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Finally, some notes are done on how to compute the noise level and signal level from a given Power Spectral Density in section <a href="#orgd3cf629">4</a>.
|
||||
Finally, some notes are done on how to compute the noise level and signal level from a given Power Spectral Density in section <a href="#orgb30a0a4">4</a>.
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org4ea4bb6" class="outline-2">
|
||||
<h2 id="org4ea4bb6"><span class="section-number-2">1</span> Spectral Analysis - Basics</h2>
|
||||
<div id="outline-container-org088a1b1" class="outline-2">
|
||||
<h2 id="org088a1b1"><span class="section-number-2">1</span> Spectral Analysis - Basics</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
<a id="org0a7c94e"></a>
|
||||
<a id="orgfea9539"></a>
|
||||
</p>
|
||||
<div class="note" id="org1f0832f">
|
||||
<div class="note" id="orgc42d320">
|
||||
<p>
|
||||
All the files (data and Matlab scripts) are accessible <a href="data/spectral_analysis_basics.zip">here</a>.
|
||||
</p>
|
||||
@ -125,11 +124,11 @@ This include:
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda127f7" class="outline-3">
|
||||
<h3 id="orgda127f7"><span class="section-number-3">1.1</span> Sensitivity of the instrumentation</h3>
|
||||
<div id="outline-container-orgd737eb1" class="outline-3">
|
||||
<h3 id="orgd737eb1"><span class="section-number-3">1.1</span> Sensitivity of the instrumentation</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
A typical measurement setup is shown in figure <a href="#orgceb262a">1</a> where we measure a physical signal which is here a velocity \(v(t)\) using a geophone.
|
||||
A typical measurement setup is shown in figure <a href="#org1b35d9b">1</a> where we measure a physical signal which is here a velocity \(v(t)\) using a geophone.
|
||||
The geophone has some dynamics that we represent with \(G_g(s)\), its output a voltage.
|
||||
The output of the geophone is then amplified by a voltage amplifier with a transfer function \(G_a(s)\).
|
||||
</p>
|
||||
@ -143,7 +142,7 @@ To obtain the real physical quantity \(v(t)\) as measured by the sensor from the
|
||||
</p>
|
||||
|
||||
|
||||
<div id="orgceb262a" class="figure">
|
||||
<div id="org1b35d9b" class="figure">
|
||||
<p><img src="figs/velocity_to_voltage.png" alt="velocity_to_voltage.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 1: </span>Schematic of the instrumentation used for the measurement</p>
|
||||
@ -175,15 +174,15 @@ And the dynamics of the amplifier in the bandwidth of interest is just a gain: \
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9909e42" class="outline-3">
|
||||
<h3 id="org9909e42"><span class="section-number-3">1.2</span> Convert the time domain from volts to velocity</h3>
|
||||
<div id="outline-container-org560596c" class="outline-3">
|
||||
<h3 id="org560596c"><span class="section-number-3">1.2</span> Convert the time domain from volts to velocity</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Let’s here try to obtain the time domain signal \(v(t)\) from the measurement \(x\).
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If \({G_a(s)}^{-1} {G_g(s)}^{-1}\) is proper, we can simulate this dynamical system to go from the voltage \(x\) to the velocity \(v\) as shown in figure <a href="#org1720d4a">2</a>.
|
||||
If \({G_a(s)}^{-1} {G_g(s)}^{-1}\) is proper, we can simulate this dynamical system to go from the voltage \(x\) to the velocity \(v\) as shown in figure <a href="#org5e194c0">2</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -191,7 +190,7 @@ If \({G_a(s)}^{-1} {G_g(s)}^{-1}\) is not proper, we add low pass filters at hig
|
||||
</p>
|
||||
|
||||
|
||||
<div id="org1720d4a" class="figure">
|
||||
<div id="org5e194c0" class="figure">
|
||||
<p><img src="figs/voltage_to_velocity.png" alt="voltage_to_velocity.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 2: </span>Schematic of the instrumentation used for the measurement</p>
|
||||
@ -224,7 +223,7 @@ We simulate this system with matlab using the <code>lsim</code> command.
|
||||
And we plot the obtained velocity
|
||||
</p>
|
||||
|
||||
<div id="orgcdf832a" class="figure">
|
||||
<div id="org47a11c9" class="figure">
|
||||
<p><img src="figs/velocity_time.png" alt="velocity_time.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 3: </span>Computed Velocity from the measured Voltage</p>
|
||||
@ -232,8 +231,8 @@ And we plot the obtained velocity
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4f2d76" class="outline-3">
|
||||
<h3 id="orgf4f2d76"><span class="section-number-3">1.3</span> Power Spectral Density and Amplitude Spectral Density</h3>
|
||||
<div id="outline-container-orgec36aea" class="outline-3">
|
||||
<h3 id="orgec36aea"><span class="section-number-3">1.3</span> Power Spectral Density and Amplitude Spectral Density</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
From the Matlab documentation:
|
||||
@ -301,25 +300,25 @@ Then, compute the power spectral density \(S_v\) and the associated frequency ve
|
||||
</div>
|
||||
|
||||
<p>
|
||||
The obtained PSD is shown in figure <a href="#org8310db4">4</a>.
|
||||
The obtained PSD is shown in figure <a href="#org343c5aa">4</a>.
|
||||
</p>
|
||||
|
||||
|
||||
<div id="org8310db4" class="figure">
|
||||
<div id="org343c5aa" class="figure">
|
||||
<p><img src="figs/psd_velocity.png" alt="psd_velocity.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 4: </span>Power Spectral Density of the measured velocity</p>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
The Amplitude Spectral Density (ASD) is defined as the square root of the Power Spectral Density and is shown in figure <a href="#org3a0740f">5</a>.
|
||||
The Amplitude Spectral Density (ASD) is defined as the square root of the Power Spectral Density and is shown in figure <a href="#org5511b28">5</a>.
|
||||
</p>
|
||||
\begin{equation}
|
||||
\Gamma_{vv}(f) = \sqrt{S_{vv}(f)} \quad \left[ \frac{m/s}{\sqrt{Hz}} \right]
|
||||
\end{equation}
|
||||
|
||||
|
||||
<div id="org3a0740f" class="figure">
|
||||
<div id="org5511b28" class="figure">
|
||||
<p><img src="figs/asd_velocity.png" alt="asd_velocity.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 5: </span>Power Spectral Density of the measured velocity</p>
|
||||
@ -327,22 +326,22 @@ The Amplitude Spectral Density (ASD) is defined as the square root of the Power
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org258225a" class="outline-3">
|
||||
<h3 id="org258225a"><span class="section-number-3">1.4</span> Modification of a signal’s Power Spectral Density when going through an LTI system</h3>
|
||||
<div id="outline-container-org02a257a" class="outline-3">
|
||||
<h3 id="org02a257a"><span class="section-number-3">1.4</span> Modification of a signal’s Power Spectral Density when going through an LTI system</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Instead of computing the time domain velocity before computing the Power Spectral Density, we could have directly computed the PSD of the measured voltage \(x\) and then take into account the sensitivity of the measurement devices to have the PSD of the velocity.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To do so, we use the fact that a signal \(u\) with a PSD \(S_{uu}\) going through a LTI system \(G_(s)\) (figure <a href="#org5640fd4">6</a>) will generate a signal \(y\) with a PSD:
|
||||
To do so, we use the fact that a signal \(u\) with a PSD \(S_{uu}\) going through a LTI system \(G_(s)\) (figure <a href="#orgb03afbc">6</a>) will generate a signal \(y\) with a PSD:
|
||||
</p>
|
||||
\begin{equation}
|
||||
S_{yy}(\omega) = \left|G(j\omega)\right|^2 S_{uu}(\omega)
|
||||
\end{equation}
|
||||
|
||||
|
||||
<div id="org5640fd4" class="figure">
|
||||
<div id="orgb03afbc" class="figure">
|
||||
<p><img src="figs/velocity_to_voltage_psd.png" alt="velocity_to_voltage_psd.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 6: </span>Schematic of the instrumentation used for the measurement</p>
|
||||
@ -380,11 +379,11 @@ And the PSD of \(v\) is obtained with the below code.
|
||||
</div>
|
||||
|
||||
<p>
|
||||
The result is compare with the PSD computed from the \(v\) signal obtained with the <code>lsim</code> command in figure <a href="#orgb2ade7c">7</a>.
|
||||
The result is compare with the PSD computed from the \(v\) signal obtained with the <code>lsim</code> command in figure <a href="#orge29c9a5">7</a>.
|
||||
</p>
|
||||
|
||||
|
||||
<div id="orgb2ade7c" class="figure">
|
||||
<div id="orge29c9a5" class="figure">
|
||||
<p><img src="figs/psd_velocity_lti_method.png" alt="psd_velocity_lti_method.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 7: </span>Obtain PSD of the velocity using the formula (<a href="./figs/psd_velocity_lti_method.png">png</a>, <a href="./figs/psd_velocity_lti_method.pdf">pdf</a>)</p>
|
||||
@ -392,15 +391,15 @@ The result is compare with the PSD computed from the \(v\) signal obtained with
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb03afa2" class="outline-3">
|
||||
<h3 id="orgb03afa2"><span class="section-number-3">1.5</span> From PSD of the velocity to the PSD of the displacement</h3>
|
||||
<div id="outline-container-orgdcf3ecc" class="outline-3">
|
||||
<h3 id="orgdcf3ecc"><span class="section-number-3">1.5</span> From PSD of the velocity to the PSD of the displacement</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
Similarly to what has been done in the last section, we can consider the displacement \(d\) can be obtained from the velocity \(v\) by going through an LTI system \(1/s\) as shown in figure <a href="#org091802d">8</a>.
|
||||
Similarly to what has been done in the last section, we can consider the displacement \(d\) can be obtained from the velocity \(v\) by going through an LTI system \(1/s\) as shown in figure <a href="#org36ddbcd">8</a>.
|
||||
</p>
|
||||
|
||||
|
||||
<div id="org091802d" class="figure">
|
||||
<div id="org36ddbcd" class="figure">
|
||||
<p><img src="figs/velocity_to_displacement_psd.png" alt="velocity_to_displacement_psd.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 8: </span>Schematic of the instrumentation used for the measurement</p>
|
||||
@ -444,10 +443,10 @@ With Matlab, the PSD of the displacement can be computed from the PSD of the vel
|
||||
</div>
|
||||
|
||||
<p>
|
||||
The obtained PSD of the displacement can be seen in figure <a href="#org54fc3f3">9</a>.
|
||||
The obtained PSD of the displacement can be seen in figure <a href="#org17622ff">9</a>.
|
||||
</p>
|
||||
|
||||
<div id="org54fc3f3" class="figure">
|
||||
<div id="org17622ff" class="figure">
|
||||
<p><img src="figs/psd_velocity_displacement.png" alt="psd_velocity_displacement.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 9: </span>PSD of the Velocity and Displacement (<a href="./figs/psd_velocity_displacement.png">png</a>, <a href="./figs/psd_velocity_displacement.pdf">pdf</a>)</p>
|
||||
@ -455,14 +454,14 @@ The obtained PSD of the displacement can be seen in figure <a href="#org54fc3f3"
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7213bb6" class="outline-3">
|
||||
<h3 id="org7213bb6"><span class="section-number-3">1.6</span> Cumulative Power/Amplitude Spectrum</h3>
|
||||
<div id="outline-container-org4c5249b" class="outline-3">
|
||||
<h3 id="org4c5249b"><span class="section-number-3">1.6</span> Cumulative Power/Amplitude Spectrum</h3>
|
||||
<div class="outline-text-3" id="text-1-6">
|
||||
<p>
|
||||
The Cumulative Power Spectrum is the cumulative integral of the Power Spectral Density:
|
||||
</p>
|
||||
\begin{equation}
|
||||
\label{org19842f1}
|
||||
\label{org695c6c9}
|
||||
CPS_v(f) = \int_0^f PSD_v(\nu) d\nu \quad [(m/s)^2]
|
||||
\end{equation}
|
||||
|
||||
@ -470,7 +469,7 @@ The Cumulative Power Spectrum is the cumulative integral of the Power Spectral D
|
||||
It is also possible to integrate from high frequency to low frequency:
|
||||
</p>
|
||||
\begin{equation}
|
||||
\label{orgc547762}
|
||||
\label{orgb6111fe}
|
||||
CPS_v(f) = \int_f^\infty PSD_v(\nu) d\nu \quad [(m/s)^2]
|
||||
\end{equation}
|
||||
|
||||
@ -481,7 +480,7 @@ The Cumulative Power Spectrum taken at frequency \(f\) thus represent the power
|
||||
|
||||
<p>
|
||||
The choice of the integral direction depends on the shape of the PSD.
|
||||
If the power is mostly present at low frequencies, it is preferable to use equation \eqref{orgc547762}.
|
||||
If the power is mostly present at low frequencies, it is preferable to use equation \eqref{orgb6111fe}.
|
||||
</p>
|
||||
|
||||
|
||||
@ -496,7 +495,7 @@ The Root Mean Square value of the velocity corresponds to the Cumulative Amplitu
|
||||
</p>
|
||||
|
||||
<p>
|
||||
With Matlab, the Cumulative Power Spectrum can be computed with the below formulas and the results are shown in figure <a href="#org504e844">10</a>.
|
||||
With Matlab, the Cumulative Power Spectrum can be computed with the below formulas and the results are shown in figure <a href="#org32654d4">10</a>.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">CPS_v = cumtrapz(f, Sv); <span class="org-comment">% Cumulative Power Spectrum from low to high frequencies</span>
|
||||
@ -526,7 +525,7 @@ xlim([0.1, 500]); ylim([1e<span class="org-type">-</span>15, 1e<span class="org-
|
||||
</div>
|
||||
|
||||
|
||||
<div id="org504e844" class="figure">
|
||||
<div id="org32654d4" class="figure">
|
||||
<p><img src="figs/cps_integral_comp.png" alt="cps_integral_comp.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 10: </span>Cumulative Power Spectrum (<a href="./figs/cps_integral_comp.png">png</a>, <a href="./figs/cps_integral_comp.pdf">pdf</a>)</p>
|
||||
@ -535,13 +534,13 @@ xlim([0.1, 500]); ylim([1e<span class="org-type">-</span>15, 1e<span class="org-
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5d7f7c" class="outline-2">
|
||||
<h2 id="orgc5d7f7c"><span class="section-number-2">2</span> Time domain signal that approximate a PSD - TF technique</h2>
|
||||
<div id="outline-container-org2810914" class="outline-2">
|
||||
<h2 id="org2810914"><span class="section-number-2">2</span> Time domain signal that approximate a PSD - TF technique</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<a id="orgaf2a606"></a>
|
||||
<a id="org1401958"></a>
|
||||
</p>
|
||||
<div class="note" id="org725e750">
|
||||
<div class="note" id="org89c02ad">
|
||||
<p>
|
||||
All the files (data and Matlab scripts) are accessible <a href="data/approximate_psd_tf.zip">here</a>.
|
||||
</p>
|
||||
@ -549,8 +548,8 @@ All the files (data and Matlab scripts) are accessible <a href="data/approximate
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87dbd31" class="outline-3">
|
||||
<h3 id="org87dbd31"><span class="section-number-3">2.1</span> Signal’s PSD</h3>
|
||||
<div id="outline-container-org1a03b54" class="outline-3">
|
||||
<h3 id="org1a03b54"><span class="section-number-3">2.1</span> Signal’s PSD</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
We load the PSD of the signal we wish to replicate.
|
||||
@ -573,7 +572,7 @@ dist_f.psd_gm = dist_f.psd_gm(3<span class="org-type">:</span>end);
|
||||
The PSD of the signal is shown on figure <a href="#fig:psd_ground_motion">fig:psd_ground_motion</a>.
|
||||
</p>
|
||||
|
||||
<div id="org020b5ad" class="figure">
|
||||
<div id="org8bb3e89" class="figure">
|
||||
<p><img src="figs/psd_ground_motion.png" alt="psd_ground_motion.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 11: </span>PSD of the signal (<a href="./figs/psd_ground_motion.png">png</a>, <a href="./figs/psd_ground_motion.pdf">pdf</a>)</p>
|
||||
@ -581,8 +580,8 @@ The PSD of the signal is shown on figure <a href="#fig:psd_ground_motion">fig:ps
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafa300b" class="outline-3">
|
||||
<h3 id="orgafa300b"><span class="section-number-3">2.2</span> Transfer Function that approximate the ASD</h3>
|
||||
<div id="outline-container-orgae722c1" class="outline-3">
|
||||
<h3 id="orgae722c1"><span class="section-number-3">2.2</span> Transfer Function that approximate the ASD</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Using <code>sisotool</code> or any other tool, we create a transfer function \(G\) such that its magnitude is close to the Amplitude Spectral Density \(\Gamma_x = \sqrt{S_x}\):
|
||||
@ -598,7 +597,7 @@ Using <code>sisotool</code> or any other tool, we create a transfer function \(G
|
||||
We compare the ASD \(\Gamma_x(\omega)\) and the magnitude of the generated transfer function \(|G(j\omega)|\) in figure [[]].
|
||||
</p>
|
||||
|
||||
<div id="orgf97b631" class="figure">
|
||||
<div id="org93e35a8" class="figure">
|
||||
<p><img src="figs/asd_and_tf_compare.png" alt="asd_and_tf_compare.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 12: </span>Comparison of the ASD and of the transfer function’s magnitude (<a href="./figs/asd_and_tf_compare.png">png</a>, <a href="./figs/asd_and_tf_compare.pdf">pdf</a>)</p>
|
||||
@ -606,18 +605,18 @@ We compare the ASD \(\Gamma_x(\omega)\) and the magnitude of the generated trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e76767" class="outline-3">
|
||||
<h3 id="org2e76767"><span class="section-number-3">2.3</span> Generated Time domain signal</h3>
|
||||
<div id="outline-container-org0c62275" class="outline-3">
|
||||
<h3 id="org0c62275"><span class="section-number-3">2.3</span> Generated Time domain signal</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
We know that a signal \(u\) going through a LTI system \(G\) (figure <a href="#orgaa7c18b">13</a>) will have its ASD modified according to the following equation:
|
||||
We know that a signal \(u\) going through a LTI system \(G\) (figure <a href="#org4ca38ee">13</a>) will have its ASD modified according to the following equation:
|
||||
</p>
|
||||
\begin{equation}
|
||||
\Gamma_{yy}(\omega) = \left|G(j\omega)\right| \Gamma_{uu}(\omega)
|
||||
\end{equation}
|
||||
|
||||
|
||||
<div id="orgaa7c18b" class="figure">
|
||||
<div id="org4ca38ee" class="figure">
|
||||
<p><img src="figs/velocity_to_voltage_psd.png" alt="velocity_to_voltage_psd.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 13: </span>Schematic of the instrumentation used for the measurement</p>
|
||||
@ -640,7 +639,7 @@ u = sqrt(Fs<span class="org-type">/</span>2)<span class="org-type">*</span>randn
|
||||
</div>
|
||||
|
||||
<p>
|
||||
We then use <code>lsim</code> to compute \(y\) as shown in figure <a href="#orgaa7c18b">13</a>.
|
||||
We then use <code>lsim</code> to compute \(y\) as shown in figure <a href="#org4ca38ee">13</a>.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">y = lsim(G_gm, u, t);
|
||||
@ -648,10 +647,10 @@ We then use <code>lsim</code> to compute \(y\) as shown in figure <a href="#orga
|
||||
</div>
|
||||
|
||||
<p>
|
||||
The obtained time domain signal is shown in figure <a href="#org0ac3980">14</a>.
|
||||
The obtained time domain signal is shown in figure <a href="#orgf5220b4">14</a>.
|
||||
</p>
|
||||
|
||||
<div id="org0ac3980" class="figure">
|
||||
<div id="orgf5220b4" class="figure">
|
||||
<p><img src="figs/time_domain_u.png" alt="time_domain_u.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 14: </span>Obtained time domain signal \(y(t)\) (<a href="./figs/time_domain_u.png">png</a>, <a href="./figs/time_domain_u.pdf">pdf</a>)</p>
|
||||
@ -659,8 +658,8 @@ The obtained time domain signal is shown in figure <a href="#org0ac3980">14</a>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e5d2ed" class="outline-3">
|
||||
<h3 id="org8e5d2ed"><span class="section-number-3">2.4</span> Comparison of the Power Spectral Densities</h3>
|
||||
<div id="outline-container-org3713bc7" class="outline-3">
|
||||
<h3 id="org3713bc7"><span class="section-number-3">2.4</span> Comparison of the Power Spectral Densities</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
We now compute the Power Spectral Density of the computed time domain signal \(y\).
|
||||
@ -678,7 +677,7 @@ win = hanning(floor(nx<span class="org-type">/</span>na));
|
||||
Finally, we compare the PSD of the original signal and the obtained signal on figure <a href="#fig:psd_comparison">fig:psd_comparison</a>.
|
||||
</p>
|
||||
|
||||
<div id="orgc9eb7e4" class="figure">
|
||||
<div id="org433994e" class="figure">
|
||||
<p><img src="figs/compare_psd_tf_technique.png" alt="compare_psd_tf_technique.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 15: </span>Comparison of the original PSD and the PSD of the computed time domain signal (<a href="./figs/compare_psd_tf_technique.png">png</a>, <a href="./figs/compare_psd_tf_technique.pdf">pdf</a>)</p>
|
||||
@ -686,15 +685,15 @@ Finally, we compare the PSD of the original signal and the obtained signal on fi
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaada5a7" class="outline-3">
|
||||
<h3 id="orgaada5a7"><span class="section-number-3">2.5</span> Simulink</h3>
|
||||
<div id="outline-container-org35debdf" class="outline-3">
|
||||
<h3 id="org35debdf"><span class="section-number-3">2.5</span> Simulink</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
One advantage of this technique is that it can be easily integrated into simulink.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The corresponding schematic is shown in figure <a href="#org1e2f2db">16</a> where the block <code>Band-Limited White Noise</code> is used to generate a random signal with a PSD equal to one (parameter <code>Noise Power</code> is set to 1).
|
||||
The corresponding schematic is shown in figure <a href="#org7960bdb">16</a> where the block <code>Band-Limited White Noise</code> is used to generate a random signal with a PSD equal to one (parameter <code>Noise Power</code> is set to 1).
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -702,14 +701,14 @@ Then, the signal generated pass through the transfer function representing the w
|
||||
</p>
|
||||
|
||||
|
||||
<div id="org1e2f2db" class="figure">
|
||||
<div id="org7960bdb" class="figure">
|
||||
<p><img src="figs/simulink_psd_generate.png" alt="simulink_psd_generate.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 16: </span>Simulink Schematic</p>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
We simulate the system shown in figure <a href="#org1e2f2db">16</a>.
|
||||
We simulate the system shown in figure <a href="#org7960bdb">16</a>.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">out = <span class="org-matlab-simulink-keyword">sim</span>(<span class="org-string">'matlab/generate_signal_psd.slx'</span>);
|
||||
@ -729,10 +728,10 @@ win = hanning(floor(nx<span class="org-type">/</span>na));
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Finally, we compare the PSD of the generated signal with the original PSD in figure <a href="#org854b508">17</a>.
|
||||
Finally, we compare the PSD of the generated signal with the original PSD in figure <a href="#orga173ec7">17</a>.
|
||||
</p>
|
||||
|
||||
<div id="org854b508" class="figure">
|
||||
<div id="orga173ec7" class="figure">
|
||||
<p><img src="figs/compare_psd_original_simulink.png" alt="compare_psd_original_simulink.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 17: </span>Comparison of the obtained signal’s PSD and original PSD (<a href="./figs/compare_psd_original_simulink.png">png</a>, <a href="./figs/compare_psd_original_simulink.pdf">pdf</a>)</p>
|
||||
@ -741,13 +740,13 @@ Finally, we compare the PSD of the generated signal with the original PSD in fig
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3a2fa99" class="outline-2">
|
||||
<h2 id="org3a2fa99"><span class="section-number-2">3</span> Time domain signal that approximate a PSD - IFFT technique</h2>
|
||||
<div id="outline-container-org00702f7" class="outline-2">
|
||||
<h2 id="org00702f7"><span class="section-number-2">3</span> Time domain signal that approximate a PSD - IFFT technique</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
<a id="org34ffc87"></a>
|
||||
<a id="org8fad482"></a>
|
||||
</p>
|
||||
<div class="note" id="org90f9574">
|
||||
<div class="note" id="orgce82865">
|
||||
<p>
|
||||
All the files (data and Matlab scripts) are accessible <a href="data/approximate_psd_ifft.zip">here</a>.
|
||||
</p>
|
||||
@ -760,8 +759,8 @@ It makes used of the Unversed Fast Fourier Transform (IFFT).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7641a6d" class="outline-3">
|
||||
<h3 id="org7641a6d"><span class="section-number-3">3.1</span> Signal’s PSD</h3>
|
||||
<div id="outline-container-org1700082" class="outline-3">
|
||||
<h3 id="org1700082"><span class="section-number-3">3.1</span> Signal’s PSD</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
We load the PSD of the signal we wish to replicate.
|
||||
@ -784,7 +783,7 @@ dist_f.psd_gm = dist_f.psd_gm(3<span class="org-type">:</span>end);
|
||||
The PSD of the signal is shown on figure <a href="#fig:psd_original">fig:psd_original</a>.
|
||||
</p>
|
||||
|
||||
<div id="orgfb99e9b" class="figure">
|
||||
<div id="orga9af359" class="figure">
|
||||
<p><img src="figs/psd_original.png" alt="psd_original.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 18: </span>PSD of the original signal (<a href="./figs/psd_original.png">png</a>, <a href="./figs/psd_original.pdf">pdf</a>)</p>
|
||||
@ -792,8 +791,8 @@ The PSD of the signal is shown on figure <a href="#fig:psd_original">fig:psd_ori
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga81034f" class="outline-3">
|
||||
<h3 id="orga81034f"><span class="section-number-3">3.2</span> Algorithm</h3>
|
||||
<div id="outline-container-org4ce31b2" class="outline-3">
|
||||
<h3 id="org4ce31b2"><span class="section-number-3">3.2</span> Algorithm</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
We define some parameters that will be used in the algorithm.
|
||||
@ -839,8 +838,8 @@ Cx = [Cx; flipud(conj(Cx(2<span class="org-type">:</span>end)))];;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e713d3" class="outline-3">
|
||||
<h3 id="org3e713d3"><span class="section-number-3">3.3</span> Obtained Time Domain Signal</h3>
|
||||
<div id="outline-container-orga9ef28c" class="outline-3">
|
||||
<h3 id="orga9ef28c"><span class="section-number-3">3.3</span> Obtained Time Domain Signal</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
The time domain data is generated by an inverse FFT.
|
||||
@ -856,7 +855,7 @@ t = linspace(0, T0, N<span class="org-type">+</span>1); <span class="org-comment
|
||||
</div>
|
||||
|
||||
|
||||
<div id="orgcdbef99" class="figure">
|
||||
<div id="org409aee0" class="figure">
|
||||
<p><img src="figs/signal_time_domain.png" alt="signal_time_domain.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 19: </span>Obtained signal in the time domain (<a href="./figs/signal_time_domain.png">png</a>, <a href="./figs/signal_time_domain.pdf">pdf</a>)</p>
|
||||
@ -864,8 +863,8 @@ t = linspace(0, T0, N<span class="org-type">+</span>1); <span class="org-comment
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4bb1a77" class="outline-3">
|
||||
<h3 id="org4bb1a77"><span class="section-number-3">3.4</span> PSD Comparison</h3>
|
||||
<div id="outline-container-org92e1c44" class="outline-3">
|
||||
<h3 id="org92e1c44"><span class="section-number-3">3.4</span> PSD Comparison</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
We duplicate the time domain signal to have a longer signal and thus a more precise PSD result.
|
||||
@ -891,7 +890,7 @@ win = hanning(floor(nx<span class="org-type">/</span>na));
|
||||
Finally, we compare the PSD of the original signal and the obtained signal on figure <a href="#fig:psd_comparison">fig:psd_comparison</a>.
|
||||
</p>
|
||||
|
||||
<div id="orgea45ab4" class="figure">
|
||||
<div id="orgf3ef538" class="figure">
|
||||
<p><img src="figs/psd_comparison.png" alt="psd_comparison.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 20: </span>Comparison of the PSD of the original signal and the PSD of the obtained signal (<a href="./figs/psd_comparison.png">png</a>, <a href="./figs/psd_comparison.pdf">pdf</a>)</p>
|
||||
@ -900,13 +899,13 @@ Finally, we compare the PSD of the original signal and the obtained signal on fi
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org92be944" class="outline-2">
|
||||
<h2 id="org92be944"><span class="section-number-2">4</span> Compute the Noise level and Signal level from PSD</h2>
|
||||
<div id="outline-container-orgce7f3a9" class="outline-2">
|
||||
<h2 id="orgce7f3a9"><span class="section-number-2">4</span> Compute the Noise level and Signal level from PSD</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
<a id="orgd3cf629"></a>
|
||||
<a id="orgb30a0a4"></a>
|
||||
</p>
|
||||
<div class="note" id="org769a9a1">
|
||||
<div class="note" id="org44b6f9e">
|
||||
<p>
|
||||
All the files (data and Matlab scripts) are accessible <a href="data/compute_psd_levels.zip">here</a>.
|
||||
</p>
|
||||
@ -918,8 +917,8 @@ Everything is explained in (<a href="#citeproc_bib_item_2">Schmid 2012</a>) sect
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6caf1d0" class="outline-3">
|
||||
<h3 id="org6caf1d0"><span class="section-number-3">4.1</span> Time Domain Signal</h3>
|
||||
<div id="outline-container-org57f2f45" class="outline-3">
|
||||
<h3 id="org57f2f45"><span class="section-number-3">4.1</span> Time Domain Signal</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
Let’s first define the number of sample and the sampling time.
|
||||
@ -955,7 +954,7 @@ anoi = 1e<span class="org-type">-</span>3; <span class="org-comment">% RMS value
|
||||
</div>
|
||||
|
||||
<p>
|
||||
The signal \(x\) is generated with the following code and is shown in figure <a href="#org1e65ee7">21</a>.
|
||||
The signal \(x\) is generated with the following code and is shown in figure <a href="#orgab8932d">21</a>.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">x = anoi<span class="org-type">*</span>randn(N, 1) <span class="org-type">+</span> asig<span class="org-type">*</span>sin((2<span class="org-type">*</span><span class="org-constant">pi</span><span class="org-type">*</span>fsig)<span class="org-type">*</span>t) <span class="org-type">+</span> ahar<span class="org-type">*</span>sin((2<span class="org-type">*</span><span class="org-constant">pi</span><span class="org-type">*</span>fhar)<span class="org-type">*</span>t);
|
||||
@ -963,7 +962,7 @@ The signal \(x\) is generated with the following code and is shown in figure <a
|
||||
</div>
|
||||
|
||||
|
||||
<div id="org1e65ee7" class="figure">
|
||||
<div id="orgab8932d" class="figure">
|
||||
<p><img src="figs/time_domain_x_zoom.png" alt="time_domain_x_zoom.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 21: </span>Time Domain Signal (<a href="./figs/time_domain_x_zoom.png">png</a>, <a href="./figs/time_domain_x_zoom.pdf">pdf</a>)</p>
|
||||
@ -971,8 +970,8 @@ The signal \(x\) is generated with the following code and is shown in figure <a
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga570861" class="outline-3">
|
||||
<h3 id="orga570861"><span class="section-number-3">4.2</span> Estimation of the magnitude of a deterministic signal</h3>
|
||||
<div id="outline-container-org3f32ef0" class="outline-3">
|
||||
<h3 id="org3f32ef0"><span class="section-number-3">4.2</span> Estimation of the magnitude of a deterministic signal</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
Let’s compute the PSD of the signal using the <code>blackmanharris</code> window.
|
||||
@ -1064,8 +1063,8 @@ Thus, always the integrated method should be used.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56203f4" class="outline-3">
|
||||
<h3 id="org56203f4"><span class="section-number-3">4.3</span> Estimation of the noise level</h3>
|
||||
<div id="outline-container-org5ab6d13" class="outline-3">
|
||||
<h3 id="org5ab6d13"><span class="section-number-3">4.3</span> Estimation of the noise level</h3>
|
||||
<div class="outline-text-3" id="text-4-3">
|
||||
<p>
|
||||
The noise level can also be computed using the integration method.
|
||||
@ -1121,12 +1120,12 @@ The estimate of the noise level is quite good.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b2b4f0" class="outline-2">
|
||||
<h2 id="org7b2b4f0"><span class="section-number-2">5</span> Further Notes</h2>
|
||||
<div id="outline-container-orgda903f8" class="outline-2">
|
||||
<h2 id="orgda903f8"><span class="section-number-2">5</span> Further Notes</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-orgd6e567c" class="outline-3">
|
||||
<h3 id="orgd6e567c"><span class="section-number-3">5.1</span> PSD of ADC quantization noise</h3>
|
||||
<div id="outline-container-orge7125fc" class="outline-3">
|
||||
<h3 id="orge7125fc"><span class="section-number-3">5.1</span> PSD of ADC quantization noise</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
This is taken from <a href="https://www.allaboutcircuits.com/technical-articles/quantization-nois-amplitude-quantization-error-analog-to-digital-converters/">here</a>.
|
||||
@ -1150,11 +1149,11 @@ Interestingly, the noise amplitude is uniformly distributed.
|
||||
|
||||
<p>
|
||||
The quantization noise can take a value between \(\pm q/2\), and the probability density function is constant in this range (i.e., it’s a uniform distribution).
|
||||
Since the integral of the probability density function is equal to one, its value will be \(1/q\) for \(-q/2 < e < q/2\) (Fig. <a href="#org5ebb625">22</a>).
|
||||
Since the integral of the probability density function is equal to one, its value will be \(1/q\) for \(-q/2 < e < q/2\) (Fig. <a href="#orge1a8015">22</a>).
|
||||
</p>
|
||||
|
||||
|
||||
<div id="org5ebb625" class="figure">
|
||||
<div id="orge1a8015" class="figure">
|
||||
<p><img src="figs/probability_density_function_adc.png" alt="probability_density_function_adc.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 22: </span>Probability density function \(p(e)\) of the ADC error \(e\)</p>
|
||||
@ -1212,7 +1211,7 @@ Finally:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-10-29 jeu. 13:28</p>
|
||||
<p class="date">Created: 2020-11-11 mer. 13:53</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -9,10 +9,9 @@
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/zenburn.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/custom.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+PROPERTY: header-args:latex :headers '("\\usepackage{tikz}" "\\usepackage{import}" "\\import{$HOME/Cloud/tikz/org/}{config.tex}")
|
||||
|
1
js/jquery.stickytableheaders.min.js
vendored
1
js/jquery.stickytableheaders.min.js
vendored
@ -1 +0,0 @@
|
||||
!function(a,b){"use strict";function c(c,g){var h=this;h.$el=a(c),h.el=c,h.id=e++,h.$window=a(b),h.$document=a(document),h.$el.bind("destroyed",a.proxy(h.teardown,h)),h.$clonedHeader=null,h.$originalHeader=null,h.isSticky=!1,h.hasBeenSticky=!1,h.leftOffset=null,h.topOffset=null,h.init=function(){h.$el.each(function(){var b=a(this);b.css("padding",0),h.$originalHeader=a("thead:first",this),h.$clonedHeader=h.$originalHeader.clone(),b.trigger("clonedHeader."+d,[h.$clonedHeader]),h.$clonedHeader.addClass("tableFloatingHeader"),h.$clonedHeader.css("display","none"),h.$originalHeader.addClass("tableFloatingHeaderOriginal"),h.$originalHeader.after(h.$clonedHeader),h.$printStyle=a('<style type="text/css" media="print">.tableFloatingHeader{display:none !important;}.tableFloatingHeaderOriginal{position:static !important;}</style>'),a("head").append(h.$printStyle)}),h.setOptions(g),h.updateWidth(),h.toggleHeaders(),h.bind()},h.destroy=function(){h.$el.unbind("destroyed",h.teardown),h.teardown()},h.teardown=function(){h.isSticky&&h.$originalHeader.css("position","static"),a.removeData(h.el,"plugin_"+d),h.unbind(),h.$clonedHeader.remove(),h.$originalHeader.removeClass("tableFloatingHeaderOriginal"),h.$originalHeader.css("visibility","visible"),h.$printStyle.remove(),h.el=null,h.$el=null},h.bind=function(){h.$scrollableArea.on("scroll."+d,h.toggleHeaders),h.isWindowScrolling||(h.$window.on("scroll."+d+h.id,h.setPositionValues),h.$window.on("resize."+d+h.id,h.toggleHeaders)),h.$scrollableArea.on("resize."+d,h.toggleHeaders),h.$scrollableArea.on("resize."+d,h.updateWidth)},h.unbind=function(){h.$scrollableArea.off("."+d,h.toggleHeaders),h.isWindowScrolling||(h.$window.off("."+d+h.id,h.setPositionValues),h.$window.off("."+d+h.id,h.toggleHeaders)),h.$scrollableArea.off("."+d,h.updateWidth)},h.toggleHeaders=function(){h.$el&&h.$el.each(function(){var b,c=a(this),d=h.isWindowScrolling?isNaN(h.options.fixedOffset)?h.options.fixedOffset.outerHeight():h.options.fixedOffset:h.$scrollableArea.offset().top+(isNaN(h.options.fixedOffset)?0:h.options.fixedOffset),e=c.offset(),f=h.$scrollableArea.scrollTop()+d,g=h.$scrollableArea.scrollLeft(),i=h.isWindowScrolling?f>e.top:d>e.top,j=(h.isWindowScrolling?f:0)<e.top+c.height()-h.$clonedHeader.height()-(h.isWindowScrolling?0:d);i&&j?(b=e.left-g+h.options.leftOffset,h.$originalHeader.css({position:"fixed","margin-top":h.options.marginTop,left:b,"z-index":3}),h.leftOffset=b,h.topOffset=d,h.$clonedHeader.css("display",""),h.isSticky||(h.isSticky=!0,h.updateWidth()),h.setPositionValues()):h.isSticky&&(h.$originalHeader.css("position","static"),h.$clonedHeader.css("display","none"),h.isSticky=!1,h.resetWidth(a("td,th",h.$clonedHeader),a("td,th",h.$originalHeader)))})},h.setPositionValues=function(){var a=h.$window.scrollTop(),b=h.$window.scrollLeft();!h.isSticky||0>a||a+h.$window.height()>h.$document.height()||0>b||b+h.$window.width()>h.$document.width()||h.$originalHeader.css({top:h.topOffset-(h.isWindowScrolling?0:a),left:h.leftOffset-(h.isWindowScrolling?0:b)})},h.updateWidth=function(){if(h.isSticky){h.$originalHeaderCells||(h.$originalHeaderCells=a("th,td",h.$originalHeader)),h.$clonedHeaderCells||(h.$clonedHeaderCells=a("th,td",h.$clonedHeader));var b=h.getWidth(h.$clonedHeaderCells);h.setWidth(b,h.$clonedHeaderCells,h.$originalHeaderCells),h.$originalHeader.css("width",h.$clonedHeader.width())}},h.getWidth=function(c){var d=[];return c.each(function(c){var e,f=a(this);if("border-box"===f.css("box-sizing"))e=f[0].getBoundingClientRect().width;else{var g=a("th",h.$originalHeader);if("collapse"===g.css("border-collapse"))if(b.getComputedStyle)e=parseFloat(b.getComputedStyle(this,null).width);else{var i=parseFloat(f.css("padding-left")),j=parseFloat(f.css("padding-right")),k=parseFloat(f.css("border-width"));e=f.outerWidth()-i-j-k}else e=f.width()}d[c]=e}),d},h.setWidth=function(a,b,c){b.each(function(b){var d=a[b];c.eq(b).css({"min-width":d,"max-width":d})})},h.resetWidth=function(b,c){b.each(function(b){var d=a(this);c.eq(b).css({"min-width":d.css("min-width"),"max-width":d.css("max-width")})})},h.setOptions=function(c){h.options=a.extend({},f,c),h.$scrollableArea=a(h.options.scrollableArea),h.isWindowScrolling=h.$scrollableArea[0]===b},h.updateOptions=function(a){h.setOptions(a),h.unbind(),h.bind(),h.updateWidth(),h.toggleHeaders()},h.init()}var d="stickyTableHeaders",e=0,f={fixedOffset:0,leftOffset:0,marginTop:0,scrollableArea:b};a.fn[d]=function(b){return this.each(function(){var e=a.data(this,"plugin_"+d);e?"string"==typeof b?e[b].apply(e):e.updateOptions(b):"destroy"!==b&&a.data(this,"plugin_"+d,new c(this,b))})}}(jQuery,window);
|
@ -9,6 +9,8 @@ $(function() {
|
||||
$('.hint').before("<p class='admonition-title hint'>Hint</p>");
|
||||
$('.error').before("<p class='admonition-title error'>Error</p>");
|
||||
$('.danger').before("<p class='admonition-title danger'>Danger</p>");
|
||||
$('.question').before("<p class='admonition-title question'>Question</p>");
|
||||
$('.summary').before("<p class='admonition-title hint'>Summary</p>");
|
||||
});
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user