0
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 2 "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 3
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 4 <html lang="en">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 5 <head>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 6 <meta name="generator" content=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 7 "HTML Tidy for Mac OS X (vers 1st December 2004), see www.w3.org">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 8 <meta http-equiv="Content-Type" content=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 9 "text/html; charset=us-ascii">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 10
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 11 <title>Empirical Transfer Function estimation (LTPDA Toolbox)</title>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 12 <link rel="stylesheet" href="docstyle.css" type="text/css">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 13 <meta name="generator" content="DocBook XSL Stylesheets V1.52.2">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 14 <meta name="description" content=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 15 "Presents an overview of the features, system requirements, and starting the toolbox.">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 16 </head>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 17
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 18 <body>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 19 <a name="top_of_page" id="top_of_page"></a>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 20
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 21 <p style="font-size:1px;"> </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 22
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 23 <table class="nav" summary="Navigation aid" border="0" width=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 24 "100%" cellpadding="0" cellspacing="0">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 25 <tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 26 <td valign="baseline"><b>LTPDA Toolbox</b></td><td><a href="../helptoc.html">contents</a></td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 27
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 28 <td valign="baseline" align="right"><a href=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 29 "ltpda_training_topic_3_2_3.html"><img src="b_prev.gif" border="0" align=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 30 "bottom" alt="Example 3: Log-scale PSD on MDC1 data"></a> <a href=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 31 "ltpda_training_topic_3_6.html"><img src="b_next.gif" border="0" align=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 32 "bottom" alt="IFO/Temperature Example - Spectral Analysis"></a></td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 33 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 34 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 35
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 36 <h1 class="title"><a name="f3-12899" id="f3-12899"></a>Empirical Transfer Function estimation</h1>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 37 <hr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 38
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 39 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 40 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 41 Let's run this exercise on empirical estimation of Transfer
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 42 Functions on the Matlab terminal.</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 43
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 44 <p>The idea of the exercise is the following:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 45 <ol>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 46 <li>simulate some white noise <em>x(t)</em></li>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 47 <li>build a band-pass filter <em>F</em></li>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 48 <li>pass the input noise <em>x(t)</em> through the filter and add some more noise
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 49 <em>yn(t)</em> at the output so to have <em>y = F*x(t) + yn(t)</em></li>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 50 <li>evaluate and plot the transfer function <em>x -> y</em> </li>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 51 </ol>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 52 In a flow diagram, the representation is as follows:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 53 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 54 <img src="images/ltpda_training_1/topic3/TFE_1_flowchart.png"
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 55 alt="Dataflow for the 1St example of ao/tfe" width="600px" border="1">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 56
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 57 <p>The command-line sequence is the following:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 58 <div class="fragment"><pre>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 59 <span class="comment">%% General definitions</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 60 nsecs = 10000;
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 61 fs = 1;
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 62 <span class="comment">%% Input noise</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 63 x = ao(plist(<span class="string">'waveform'</span>, <span class="string">'noise'</span>, <span class="string">'sigma'</span>, 3, <span class="string">'fs'</span>, fs, <span class="string"> 'nsecs'</span>, nsecs, <span class="string">'yunits'</span>, <span class="string">'V'</span>))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 64
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 65 <span class="comment">%% Filter</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 66 bp_filter = miir(plist(<span class="string">'type'</span>, <span class="string">'bandpass'</span>, <span class="string">'fc'</span>, [0.01 0.1], <span class="string">'fs'</span>, 1, <span class="string">'order'</span>, 3,<span class="string">'iunits'</span>, <span class="string">'V'</span>, <span class="string">'ounits'</span>, <span class="string">'A'</span>))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 67 xf = simplifyYunits(filter(x, bp_filter))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 68
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 69 <span class="comment">%% Output noise</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 70 yn = ao(plist(<span class="string">'waveform'</span>,<span class="string">'noise'</span>, <span class="string">'sigma'</span>, 1, <span class="string">'fs'</span>, fs, <span class="string">'nsecs'</span>, xf.nsecs, <span class="string">'yunits'</span>, <span class="string">'A'</span>))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 71 y = xf + yn
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 72
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 73 <span class="comment">%% Plotting input and output noise</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 74 xx = psd(x, plist(<span class="string">'scale'</span>,...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 75 <span class="string">'ASD'</span>,...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 76 <span class="string">'nfft'</span>, 1000))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 77 yy = psd(y, plist(<span class="string">'scale'</span>,<span class="string">'ASD'</span>, ...
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 78 <span class="string">'nfft'</span>, 1000))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 79 iplot(xx, yy, plist(<span class="string">'Arrangement'</span>, <span class="string">'subplots'</span>, <span class="string">'YRanges'</span>, {[1e-1 1e1], [1e-2 1e2]}));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 80
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 81 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 82 <img src="images/ltpda_training_1/topic3/TFE_in_out.png" alt="Ohmic admittance between y and x" border="1">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 83 <br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 84 <p>Now we can proceed with the call to the <tt>ao/tfe</tt> method. The
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 85 parameter list is very similar to the one employed for the other spectral
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 86 estimators:</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 87
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 88 <table cellspacing="0" class="body" cellpadding="2" border="0" width="80%">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 89 <colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 90 <col width="15%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 91 <col width="20%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 92 <col width="65%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 93 </colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 94 <thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 95 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 96 <th class="categorylist">Key</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 97 <th class="categorylist">Value</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 98 <th class="categorylist">Description</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 99 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 100 </thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 101 <tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 102 <!-- Key 'NFFT' -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 103 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 104 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 105 <p><tt>NFFT</tt></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 106 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 107 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 108 <p><span class="string">1000</span></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 109 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 110 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 111 <p>The number of samples defining the length of the window to apply</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 112 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 113 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 114 <!-- Key 'WIN' -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 115 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 116 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 117 <p><tt>WIN</tt></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 118 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 119 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 120 <p><span class="string">'BH92'</span></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 121 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 122 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 123 <p>Or a different one, if you want.</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 124 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 125 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 126 <!-- Key 'OLAP' -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 127 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 128 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 129 <p><tt>OLAP</tt></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 130 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 131 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 132 <p><span class="string">-1</span></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 133 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 134 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 135 <p>Overlap will be chosen based on the window properties</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 136 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 137 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 138 <!-- Key 'ORDER' -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 139 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 140 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 141 <p><tt>ORDER</tt></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 142 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 143 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 144 <p><span class="string">0</span></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 145 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 146 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 147 <p>Segment-wise detrending up to order 0</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 148 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 149 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 150 </tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 151 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 152 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 153 <p>The command line is the following:</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 154 <div class="fragment"><pre>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 155 <span class="comment">%% Estimate the x->y transfer function</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 156 tfxy = tfe(x, y, plist(<span class="string">'nfft'</span>, 1000, <span class="string">'win'</span>, <span class="string">'BH92'</span>, <span class="string">'olap'</span>, -1, <span class="string">'order'</span>, 0));
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 157 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 158 <p>We also would like to evaluate the expected transfer function x->y, which is obviously the filter transfer function, or response. This can be calculated by means of the
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 159 <table cellspacing="0" class="note" summary="Note" cellpadding="5" border="1">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 160 <tr width="90%">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 161 <td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 162 <tt>miir/resp</tt>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 163 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 164 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 165 </table> method. A detailed description of digital filtering is available in the User Manual dedicated <a href="sigproc_dfilt.html" >section</a> and will be touched upon in <a href="ltpda_training_topic_4_4_2.html" >this</a> topic; here let's just use the simplest form, where the needed parameter is a list of the frequency to evaluate the response at:</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 166 <table cellspacing="0" class="body" cellpadding="2" border="0" width="80%">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 167 <colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 168 <col width="15%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 169 <col width="35%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 170 <col width="50%"/>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 171 </colgroup>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 172 <thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 173 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 174 <th class="categorylist">Key</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 175 <th class="categorylist">Value</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 176 <th class="categorylist">Description</th>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 177 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 178 </thead>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 179 <tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 180 <!-- Key 'f' -->
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 181 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 182 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 183 <p><tt>F</tt></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 184 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 185 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 186 <p><span class="string">tfxy.x</span></p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 187 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 188 <td bgcolor="#f3f4f5">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 189 <p>a vector of frequency values or an <tt>ao</tt> whereby the x-axis is taken for the frequency values</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 190 </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 191 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 192 </tbody>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 193 </table>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 194 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 195 So we can just pass the x field of the fsdata <tt>ao</tt> containing the transfer function estimate. However,
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 196 we can also just pass the AO itself. In which case, the <tt>resp</tt> function will take the X values from
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 197 the AO.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 198 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 199 <p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 200 The command line is the following:</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 201 <div class="fragment"><pre>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 202 <span class="comment">%% Evaluate the expected x->y transfer function</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 203 rf = resp(bp_filter, plist(<span class="string">'f'</span>, tfxy))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 204 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 205
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 206 <p>Eventually let's look at the results:
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 207 <div class="fragment"><pre>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 208 <span class="comment">%% Plotting estimated and expected transfer functions</span>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 209 iplot(tfxy, rf, plist(<span class="string">'colors'</span>,{[1 0 0],[0 0 0]},<span class="string">'YRanges'</span>, {[1e-2 1e2], [-200 200]}))
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 210 </pre></div>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 211 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 212 <img src="images/ltpda_training_1/topic3/TFE_result_1.png" alt="TFE of x into y" border="1">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 213 <br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 214
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 215
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 216 </p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 217
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 218 <br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 219 <br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 220 <table class="nav" summary="Navigation aid" border="0" width=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 221 "100%" cellpadding="0" cellspacing="0">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 222 <tr valign="top">
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 223 <td align="left" width="20"><a href="ltpda_training_topic_3_2_3.html"><img src=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 224 "b_prev.gif" border="0" align="bottom" alt=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 225 "Example 3: Log-scale PSD on MDC1 data"></a> </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 226
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 227 <td align="left">Example 3: Log-scale PSD on MDC1 data</td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 228
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 229 <td> </td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 230
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 231 <td align="right">IFO/Temperature Example - Spectral Analysis</td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 232
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 233 <td align="right" width="20"><a href=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 234 "ltpda_training_topic_3_6.html"><img src="b_next.gif" border="0" align=
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 235 "bottom" alt="IFO/Temperature Example - Spectral Analysis"></a></td>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 236 </tr>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 237 </table><br>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 238
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 239 <p class="copy">©LTP Team</p>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 240 </body>
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
+ − 241 </html>