-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.tex
286 lines (237 loc) · 7.73 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
\documentclass[10pt,a4paper,twoside]{book}
\input{style}
\usepackage[
left=2.5cm, % inner
right=2.5cm, % outer
top=2.5cm,
bottom=3cm,
%showframe,
]{geometry}
\usepackage{xr} % cross-referencing
\makenoidxglossaries
% Comandi pratici
% d nell'integrale e i rispettivi usi
\newcommand{\dl}{\de l}
\newcommand{\dr}{\de r}
\newcommand{\dxi}{\de \xi}
\newcommand{\drho}{\de \rho}
% d nell'integrale con differenziale vettoriale
\newcommand{\dxx}{\de \x}
\newcommand{\dyy}{\de \y}
\newcommand{\dsig}{\de \sigg}
\allowdisplaybreaks[4] % Consente di rompere equazioni su più pagine
% MIDA1 acronym
\newacronym{sp}{SP}{Stochastic Process}
\newacronym{ssp}{SSP}{Stationary Stochastic Process}
\newacronym{ma}{MA}{Moving Average}
\newacronym{ar}{AR}{Auto Regressive}
\newacronym{arx}{ARX}{Auto Regressive with Exogenous Input}
\newacronym{arma}{ARMA}{Auto Regressive Moving Average}
\newacronym{armax}{ARMAX}{Auto Regressive Moving Average with Exogenous Input}
\newacronym{mse}{MSE}{Mean Square Error}
\newacronym{wn}{WN}{White Noise}
\newacronym{pem}{PEM}{Prediction Error Minimization}
% MIDA2 acronym
\newacronym{tf}{TF}{Transfer Function}
\newacronym{ss}{SS}{State-Space}
\newacronym{ir}{IR}{Impulse Response}
\newacronym{bb}{BB}{Black-Box}
\newacronym{wb}{WB}{White-Box}
\newacronym{gb}{GB}{Gray-Box}
\newacronym{kf}{KF}{Kalman Filter}
\newacronym{dre}{DRE}{Difference Riccati Equation}
\newacronym{are}{ARE}{Algebraic Riccati Equation}
\newacronym{sem}{SEM}{Simulation Error Method}
%c ommon used operator
\DeclareMathOperator{\WN}{WN}
\begin{document}
\frontmatter
\pagestyle{empty}
% TITLE PAGE
\hypertarget{mytitlepage}{} % set the hypertarget
\bookmark[dest=mytitlepage,level=chapter]{Title Page} % add the bookmark
\vspace*{\fill}
\begin{center}
{\large \textsc{Lecture Notes of}}\\
\vspace*{0.4cm}
{\Huge
\textsc{Model Identification}\\
\vspace*{0.4cm}
\textsc{and Data Analysis}}\\
\vspace*{0.4cm}
{\huge \textsc{Module 2}}\\
\vspace*{1cm}
{\large {From Professor Sergio Savaresi's lectures}}\\
\vspace*{1cm}
{\large
Author\\
\vspace*{0.1cm}
\textsc{Edoardo Morassutto}\\
\vspace*{0.4cm}
Contributors\\
\vspace*{0.1cm}
\textsc{Marco Donadoni}\\
\textsc{Cosimo Russo}\\
\textsc{Federico Cazzola}\\
\vspace*{0.4cm}
Reviewed for the 2022 edition of the course by\\
\vspace*{0.1cm}
\textsc{Andrea Bosisio}\\
\vspace*{0.4cm}
Document formatting by\\
\vspace*{0.1cm}
\textsc{Teo Bucci}}\\
\vspace*{1cm}
Politecnico di Milano\\A.Y. 2021/2022
\end{center}
\vspace*{\fill}
\clearpage
% COPYRIGHT PAGE
\hypertarget{mycopyright}{} % set the hypertarget
\bookmark[dest=mycopyright,level=chapter]{Copyright Page} % add the bookmark
\input{firstpages/copyright}
\clearpage
% PREFACE
% \hypertarget{mypreface}{} % set the hypertarget
% \bookmark[dest=mypreface,level=chapter]{Preface} % add the bookmark
% \input{firstpages/preface}
% \clearpage
% CONTENTS
\cleardoublepage
\pagestyle{toc}
\hypertarget{mytoc}{} % set the hypertarget
\bookmark[dest=mytoc,level=chapter]{\contentsname} % add the bookmark
\tableofcontents
\cleardoublepage
% MAIN MATTER
\pagestyle{fancy}
\mainmatter
%%TIKZ
\usetikzlibrary{matrix,shapes.geometric}
\tikzstyle{block} = [draw, rectangle, inner sep=6pt]
\tikzstyle{every node} = [font=\small]
\tikzstyle{sum} = [draw, circle, inner sep=3pt, minimum size =0.1cm]
% Cross
\tikzset{cross/.style={cross out, draw=black, minimum size=2*(#1-\pgflinewidth), inner sep=0pt, outer sep=0pt},
%default radius will be 1pt.
cross/.default={0.1cm}}
% double border
\tikzstyle{double border} = [double, double distance=0.5mm]
% pattern in border
\newcounter{tmp}
\newif\ifpathisclosed
\tikzset{dashed border/.style={
preaction={decoration={contour lineto closed, contour distance=2pt},
decorate,
},
postaction={
insert path={%
\pgfextra{%
\pgfinterruptpath
\path[pattern=north west lines, pattern color=black,even odd rule]
\mySecondList \myList
;
\endpgfinterruptpath}
}},
}}
\def\pgfdecoratedcontourdistance{0pt}
\pgfset{
decoration/contour distance/.code=%
\pgfmathsetlengthmacro\pgfdecoratedcontourdistance{#1}}
\pgfdeclaredecoration{contour lineto closed}{start}{%
\state{start}[
next state=draw,
width=0pt,
persistent precomputation=\let\pgf@decorate@firstsegmentangle\pgfdecoratedangle]{%
%\xdef\myList{}\xdef\mySecondList{}%
\setcounter{tmp}{0}%
\global\pathisclosedfalse%
\pgfpathmoveto{\pgfpointlineattime{.5}
{\pgfqpoint{0pt}{\pgfdecoratedcontourdistance}}
{\pgfqpoint{\pgfdecoratedinputsegmentlength}{\pgfdecoratedcontourdistance}}}%
}%
\state{draw}[next state=draw, width=\pgfdecoratedinputsegmentlength]{%
\ifpgf@decorate@is@closepath@%
\pgfmathsetmacro\pgfdecoratedangletonextinputsegment{%
-\pgfdecoratedangle+\pgf@decorate@firstsegmentangle}%
\fi
\pgfmathsetlengthmacro\pgf@decoration@contour@shorten{%
-\pgfdecoratedcontourdistance*cot(-\pgfdecoratedangletonextinputsegment/2+90)}%
\pgfpathlineto
{\pgfpoint{\pgfdecoratedinputsegmentlength+\pgf@decoration@contour@shorten}
{\pgfdecoratedcontourdistance}}%
\stepcounter{tmp}%
\pgfcoordinate{muemmel\number\value{tmp}}{\pgfpoint{\pgfdecoratedinputsegmentlength+\pgf@decoration@contour@shorten}
{\pgfdecoratedcontourdistance}}%
\pgfcoordinate{feep\number\value{tmp}}{\pgfpoint{\pgfdecoratedinputsegmentlength}{0pt}}%
\ifnum\value{tmp}=1\relax%
\pgfcoordinate{muemmel0}{\pgfpoint{0pt}{\pgfdecoratedcontourdistance}}%
\pgfcoordinate{feep0}{\pgfpoint{0pt}{0pt}}%
\xdef\myList{(muemmel\number\value{tmp})}%
\xdef\mySecondList{(feep\number\value{tmp})}%
\else
\xdef\myList{\myList -- (muemmel\number\value{tmp})}%
\xdef\mySecondList{(feep\number\value{tmp}) -- \mySecondList}%
\fi
\ifpgf@decorate@is@closepath@%
\pgfpathclose
\global\pathisclosedtrue%
\fi
}%
\state{final}{%\typeout{\myList,\mySecondList}%
\ifpathisclosed%
\xdef\myList{\myList -- cycle}%
\xdef\mySecondList{\mySecondList -- cycle}%
%\typeout{closed \mySecondList \myList }
\else
%\typeout{\number\value{tmp}}%
\xdef\myList{(muemmel0) -- \myList -- cycle}%
\xdef\mySecondList{\mySecondList -- (feep0) --}%
%\typeout{not closed \mySecondList \myList }%
\fi
}%
}
\tikzset{
contour/.style={
decoration={
name=contour lineto closed,
contour distance=#1
},
decorate}}
% pattern
\tikzset{
hatch distance/.store in=\hatchdistance,
hatch distance=10pt,
hatch thickness/.store in=\hatchthickness,
hatch thickness=0.2pt
}
\pgfdeclarepatternformonly[\hatchdistance,\hatchthickness]{flexible hatch}
{\pgfqpoint{0pt}{0pt}}
{\pgfqpoint{\hatchdistance}{\hatchdistance}}
{\pgfpoint{\hatchdistance-1pt}{\hatchdistance-1pt}}%
{
\pgfsetcolor{\tikz@pattern@color}
\pgfsetlinewidth{\hatchthickness}
\pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
\pgfpathlineto{\pgfqpoint{\hatchdistance}{\hatchdistance}}
\pgfusepath{stroke}
}
%\tikzstyle{input} = [coordinate]
%\tikzstyle{output} = [coordinate]
%\tikzstyle{pinstyle} = [pin edge={to-,thin,black}]
\input{lectures/2022_04_06}
\input{lectures/2022_04_07}
\input{lectures/2022_04_11}
\input{lectures/2022_04_12}
\input{lectures/2022_04_14}
\input{lectures/2022_04_20}
\input{lectures/2022_04_21}
\input{lectures/2022_04_27}
\input{lectures/2022_05_02}
\input{lectures/2022_05_09}
\input{lectures/2022_05_12}
\glsaddall
\printnoidxglossary[type=\acronymtype,title=Glossary, toctitle=Glossary, nonumberlist]
\cleardoublepage
\end{document}
%Aliasing errors occur when components of a signal are above the Nyquist frequency (Nyquist theory states that the sampling frequency must be at least two times the highest frequency component of the signal) or one half the sample rate.