1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
---|
2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
---|
3 | <compounddef id="ill__polyfit_8m" kind="file"> |
---|
4 | <compoundname>ill_polyfit.m</compoundname> |
---|
5 | <sectiondef kind="var"> |
---|
6 | <memberdef kind="variable" id="ill__polyfit_8m_148a49a8f8836255c3a867c5c5997840d" prot="public" static="no" mutable="no"> |
---|
7 | <type>Test example for polynomial regression</type> |
---|
8 | <definition>Test example for polynomial regression x</definition> |
---|
9 | <argsstring></argsstring> |
---|
10 | <name>x</name> |
---|
11 | <initializer> 0.1:0.1:1</initializer> |
---|
12 | <briefdescription> |
---|
13 | </briefdescription> |
---|
14 | <detaileddescription> |
---|
15 | </detaileddescription> |
---|
16 | <inbodydescription> |
---|
17 | </inbodydescription> |
---|
18 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="2" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="2" bodyend="-1"/> |
---|
19 | </memberdef> |
---|
20 | <memberdef kind="variable" id="ill__polyfit_8m_1f5baa506e65b4caa6be6d1c6661dfe63" prot="public" static="no" mutable="no"> |
---|
21 | <type></type> |
---|
22 | <definition>Data</definition> |
---|
23 | <argsstring></argsstring> |
---|
24 | <name>Data</name> |
---|
25 | <initializer> x.^3 - 0.1*x + 1</initializer> |
---|
26 | <briefdescription> |
---|
27 | </briefdescription> |
---|
28 | <detaileddescription> |
---|
29 | </detaileddescription> |
---|
30 | <inbodydescription> |
---|
31 | </inbodydescription> |
---|
32 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="3" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="3" bodyend="-1"/> |
---|
33 | </memberdef> |
---|
34 | <memberdef kind="variable" id="ill__polyfit_8m_1cb91a2ef664f30e00d2a2b60b7b1d329" prot="public" static="no" mutable="no"> |
---|
35 | <type></type> |
---|
36 | <definition>DataC</definition> |
---|
37 | <argsstring></argsstring> |
---|
38 | <name>DataC</name> |
---|
39 | <initializer> Data+0.02*randn(1,10)</initializer> |
---|
40 | <briefdescription> |
---|
41 | </briefdescription> |
---|
42 | <detaileddescription> |
---|
43 | </detaileddescription> |
---|
44 | <inbodydescription> |
---|
45 | </inbodydescription> |
---|
46 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="4" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="4" bodyend="-1"/> |
---|
47 | </memberdef> |
---|
48 | <memberdef kind="variable" id="ill__polyfit_8m_1042f973e6f7d952f579a2bc5dc1f9d8c" prot="public" static="no" mutable="no"> |
---|
49 | <type></type> |
---|
50 | <definition>xP</definition> |
---|
51 | <argsstring></argsstring> |
---|
52 | <name>xP</name> |
---|
53 | <initializer> 0:0.01:1.2</initializer> |
---|
54 | <briefdescription> |
---|
55 | </briefdescription> |
---|
56 | <detaileddescription> |
---|
57 | </detaileddescription> |
---|
58 | <inbodydescription> |
---|
59 | </inbodydescription> |
---|
60 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="6" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="6" bodyend="-1"/> |
---|
61 | </memberdef> |
---|
62 | <memberdef kind="variable" id="ill__polyfit_8m_1a52645c0ee282a748dee9b026b638478" prot="public" static="no" mutable="no"> |
---|
63 | <type>for</type> |
---|
64 | <definition>x n</definition> |
---|
65 | <argsstring></argsstring> |
---|
66 | <name>n</name> |
---|
67 | <initializer>1:5 |
---|
68 | Pn = polyfit(x,DataC,n)</initializer> |
---|
69 | <briefdescription> |
---|
70 | </briefdescription> |
---|
71 | <detaileddescription> |
---|
72 | </detaileddescription> |
---|
73 | <inbodydescription> |
---|
74 | </inbodydescription> |
---|
75 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="21" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="20" bodyend="-1"/> |
---|
76 | </memberdef> |
---|
77 | <memberdef kind="variable" id="ill__polyfit_8m_1ab36a85ea13a53d069f8e5050bfe0678" prot="public" static="no" mutable="no"> |
---|
78 | <type></type> |
---|
79 | <definition>devn</definition> |
---|
80 | <argsstring></argsstring> |
---|
81 | <name>devn</name> |
---|
82 | <initializer> DataC-polyval(Pn,x)</initializer> |
---|
83 | <briefdescription> |
---|
84 | </briefdescription> |
---|
85 | <detaileddescription> |
---|
86 | </detaileddescription> |
---|
87 | <inbodydescription> |
---|
88 | </inbodydescription> |
---|
89 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="22" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="22" bodyend="-1"/> |
---|
90 | </memberdef> |
---|
91 | <memberdef kind="variable" id="ill__polyfit_8m_196dbaf91095e26fe73d731f911f2cd48" prot="public" static="no" mutable="no"> |
---|
92 | <type></type> |
---|
93 | <definition>Yn</definition> |
---|
94 | <argsstring></argsstring> |
---|
95 | <name>Yn</name> |
---|
96 | <initializer> polyval(Pn,xP)</initializer> |
---|
97 | <briefdescription> |
---|
98 | </briefdescription> |
---|
99 | <detaileddescription> |
---|
100 | </detaileddescription> |
---|
101 | <inbodydescription> |
---|
102 | </inbodydescription> |
---|
103 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="23" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="23" bodyend="-1"/> |
---|
104 | </memberdef> |
---|
105 | <memberdef kind="variable" id="ill__polyfit_8m_1123b845589fd868f506b014c94ee7df7" prot="public" static="no" mutable="no"> |
---|
106 | <type>figure</type> |
---|
107 | <definition>figure ind</definition> |
---|
108 | <argsstring></argsstring> |
---|
109 | <name>ind</name> |
---|
110 | <initializer> ind+1</initializer> |
---|
111 | <briefdescription> |
---|
112 | </briefdescription> |
---|
113 | <detaileddescription> |
---|
114 | </detaileddescription> |
---|
115 | <inbodydescription> |
---|
116 | </inbodydescription> |
---|
117 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="27" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="27" bodyend="-1"/> |
---|
118 | </memberdef> |
---|
119 | <memberdef kind="variable" id="ill__polyfit_8m_158ab1fd68e97078232808206b850161b" prot="public" static="no" mutable="no"> |
---|
120 | <type>hold</type> |
---|
121 | <definition>hold on</definition> |
---|
122 | <argsstring></argsstring> |
---|
123 | <name>on</name> |
---|
124 | <briefdescription> |
---|
125 | </briefdescription> |
---|
126 | <detaileddescription> |
---|
127 | </detaileddescription> |
---|
128 | <inbodydescription> |
---|
129 | </inbodydescription> |
---|
130 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="29" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="29" bodyend="-1"/> |
---|
131 | </memberdef> |
---|
132 | <memberdef kind="variable" id="ill__polyfit_8m_1b0f0b64976a0ab81199ee6b740020156" prot="public" static="no" mutable="no"> |
---|
133 | <type>end for</type> |
---|
134 | <definition>end for o</definition> |
---|
135 | <argsstring></argsstring> |
---|
136 | <name>o</name> |
---|
137 | <initializer>1:5 |
---|
138 | D = DataC</initializer> |
---|
139 | <briefdescription> |
---|
140 | </briefdescription> |
---|
141 | <detaileddescription> |
---|
142 | </detaileddescription> |
---|
143 | <inbodydescription> |
---|
144 | </inbodydescription> |
---|
145 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="40" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="39" bodyend="-1"/> |
---|
146 | </memberdef> |
---|
147 | <memberdef kind="variable" id="ill__polyfit_8m_11ab224c10c942431adb9c9dd29acb067" prot="public" static="no" mutable="no"> |
---|
148 | <type></type> |
---|
149 | <definition>end[th, tll]</definition> |
---|
150 | <argsstring>[th, tll]</argsstring> |
---|
151 | <name>end</name> |
---|
152 | <initializer>arx([D;ones(size(x))])</initializer> |
---|
153 | <briefdescription> |
---|
154 | </briefdescription> |
---|
155 | <detaileddescription> |
---|
156 | </detaileddescription> |
---|
157 | <inbodydescription> |
---|
158 | </inbodydescription> |
---|
159 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="44" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="44" bodyend="-1"/> |
---|
160 | </memberdef> |
---|
161 | <memberdef kind="variable" id="ill__polyfit_8m_1d686f91c7cfdf14667846b383d0ab540" prot="public" static="no" mutable="no"> |
---|
162 | <type>end</type> |
---|
163 | <definition>end emar</definition> |
---|
164 | <argsstring></argsstring> |
---|
165 | <name>emar</name> |
---|
166 | <initializer> exp(marll)</initializer> |
---|
167 | <briefdescription> |
---|
168 | </briefdescription> |
---|
169 | <detaileddescription> |
---|
170 | </detaileddescription> |
---|
171 | <inbodydescription> |
---|
172 | </inbodydescription> |
---|
173 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="47" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="47" bodyend="-1"/> |
---|
174 | </memberdef> |
---|
175 | <memberdef kind="variable" id="ill__polyfit_8m_1391e34f2de441d79152a7b3d6e4c9c86" prot="public" static="no" mutable="no"> |
---|
176 | <type></type> |
---|
177 | <definition>figure</definition> |
---|
178 | <argsstring></argsstring> |
---|
179 | <name>figure</name> |
---|
180 | <briefdescription> |
---|
181 | </briefdescription> |
---|
182 | <detaileddescription> |
---|
183 | </detaileddescription> |
---|
184 | <inbodydescription> |
---|
185 | </inbodydescription> |
---|
186 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="48" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="48" bodyend="-1"/> |
---|
187 | </memberdef> |
---|
188 | <memberdef kind="variable" id="ill__polyfit_8m_1b91b34ae619fcdfcba4522b4f335bf83" prot="public" static="no" mutable="no"> |
---|
189 | <type></type> |
---|
190 | <definition>Position</definition> |
---|
191 | <argsstring></argsstring> |
---|
192 | <name>Position</name> |
---|
193 | <briefdescription> |
---|
194 | </briefdescription> |
---|
195 | <detaileddescription> |
---|
196 | </detaileddescription> |
---|
197 | <inbodydescription> |
---|
198 | </inbodydescription> |
---|
199 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="59" bodyfile="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" bodystart="59" bodyend="-1"/> |
---|
200 | </memberdef> |
---|
201 | </sectiondef> |
---|
202 | <sectiondef kind="func"> |
---|
203 | <memberdef kind="function" id="ill__polyfit_8m_1d847cfb7fab5e63a0628752c61532240" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
204 | <type>close all</type> |
---|
205 | <definition>close all figure</definition> |
---|
206 | <argsstring>(1)</argsstring> |
---|
207 | <name>figure</name> |
---|
208 | <param> |
---|
209 | <type>1</type> |
---|
210 | </param> |
---|
211 | <briefdescription> |
---|
212 | </briefdescription> |
---|
213 | <detaileddescription> |
---|
214 | </detaileddescription> |
---|
215 | <inbodydescription> |
---|
216 | </inbodydescription> |
---|
217 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="9"/> |
---|
218 | </memberdef> |
---|
219 | <memberdef kind="function" id="ill__polyfit_8m_1ab12de0a32a5e49fd31c109964c48ba5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
220 | <type></type> |
---|
221 | <definition>subplot</definition> |
---|
222 | <argsstring>(2, 2, 1)</argsstring> |
---|
223 | <name>subplot</name> |
---|
224 | <param> |
---|
225 | <type>2</type> |
---|
226 | </param> |
---|
227 | <param> |
---|
228 | <type>2</type> |
---|
229 | </param> |
---|
230 | <param> |
---|
231 | <type>1</type> |
---|
232 | </param> |
---|
233 | <briefdescription> |
---|
234 | </briefdescription> |
---|
235 | <detaileddescription> |
---|
236 | </detaileddescription> |
---|
237 | <inbodydescription> |
---|
238 | </inbodydescription> |
---|
239 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="10"/> |
---|
240 | </memberdef> |
---|
241 | <memberdef kind="function" id="ill__polyfit_8m_1c80e87e51877d050827340fba464fde8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
242 | <type></type> |
---|
243 | <definition>plot</definition> |
---|
244 | <argsstring>(x, DataC,'+')</argsstring> |
---|
245 | <name>plot</name> |
---|
246 | <param> |
---|
247 | <type>x</type> |
---|
248 | </param> |
---|
249 | <param> |
---|
250 | <type>DataC</type> |
---|
251 | </param> |
---|
252 | <param> |
---|
253 | <type>'+'</type> |
---|
254 | </param> |
---|
255 | <briefdescription> |
---|
256 | </briefdescription> |
---|
257 | <detaileddescription> |
---|
258 | </detaileddescription> |
---|
259 | <inbodydescription> |
---|
260 | </inbodydescription> |
---|
261 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="11"/> |
---|
262 | </memberdef> |
---|
263 | <memberdef kind="function" id="ill__polyfit_8m_1381ae41961f9742724dec9f6167d4743" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
264 | <type></type> |
---|
265 | <definition>set</definition> |
---|
266 | <argsstring>(gca,'XLim',[0, 1.4])</argsstring> |
---|
267 | <name>set</name> |
---|
268 | <param> |
---|
269 | <type>gca</type> |
---|
270 | </param> |
---|
271 | <param> |
---|
272 | <type>'XLim'</type> |
---|
273 | </param> |
---|
274 | <briefdescription> |
---|
275 | </briefdescription> |
---|
276 | <detaileddescription> |
---|
277 | </detaileddescription> |
---|
278 | <inbodydescription> |
---|
279 | </inbodydescription> |
---|
280 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="12"/> |
---|
281 | </memberdef> |
---|
282 | <memberdef kind="function" id="ill__polyfit_8m_1f816983c15d2a9c7aa11b03c1a869448" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
283 | <type></type> |
---|
284 | <definition>title</definition> |
---|
285 | <argsstring>('y=x^3-0.1x+1+0.1 N(0, 1)')</argsstring> |
---|
286 | <name>title</name> |
---|
287 | <param> |
---|
288 | <type>'</type> |
---|
289 | <declname>y</declname> |
---|
290 | <defval>x^3-0.1x+1+0.1 N(0, 1)'</defval> |
---|
291 | </param> |
---|
292 | <briefdescription> |
---|
293 | </briefdescription> |
---|
294 | <detaileddescription> |
---|
295 | </detaileddescription> |
---|
296 | <inbodydescription> |
---|
297 | </inbodydescription> |
---|
298 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="13"/> |
---|
299 | </memberdef> |
---|
300 | <memberdef kind="function" id="ill__polyfit_8m_1f0572a73390c559c115922b168b58ea1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
301 | <type></type> |
---|
302 | <definition>set</definition> |
---|
303 | <argsstring>(gcf,'Position',[100 100 350 250])</argsstring> |
---|
304 | <name>set</name> |
---|
305 | <param> |
---|
306 | <type>gcf</type> |
---|
307 | </param> |
---|
308 | <param> |
---|
309 | <type>'Position'</type> |
---|
310 | </param> |
---|
311 | <briefdescription> |
---|
312 | </briefdescription> |
---|
313 | <detaileddescription> |
---|
314 | </detaileddescription> |
---|
315 | <inbodydescription> |
---|
316 | </inbodydescription> |
---|
317 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="14"/> |
---|
318 | </memberdef> |
---|
319 | <memberdef kind="function" id="ill__polyfit_8m_1a31ca403c5d9830bfec8020f97b49f29" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
320 | <type></type> |
---|
321 | <definition>set</definition> |
---|
322 | <argsstring>(gcf,'PaperPositionMode','auto')</argsstring> |
---|
323 | <name>set</name> |
---|
324 | <param> |
---|
325 | <type>gcf</type> |
---|
326 | </param> |
---|
327 | <param> |
---|
328 | <type>'PaperPositionMode'</type> |
---|
329 | </param> |
---|
330 | <param> |
---|
331 | <type>'auto'</type> |
---|
332 | </param> |
---|
333 | <briefdescription> |
---|
334 | </briefdescription> |
---|
335 | <detaileddescription> |
---|
336 | </detaileddescription> |
---|
337 | <inbodydescription> |
---|
338 | </inbodydescription> |
---|
339 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="15"/> |
---|
340 | </memberdef> |
---|
341 | <memberdef kind="function" id="ill__polyfit_8m_1803012524d656815ab8a2fc52c72e6da" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual"> |
---|
342 | <type>id</type> |
---|
343 | <definition>id ind</definition> |
---|
344 | <argsstring>()</argsstring> |
---|
345 | <name>ind</name> |
---|
346 | <briefdescription> |
---|
347 | </briefdescription> |
---|
348 | <detaileddescription> |
---|
349 | </detaileddescription> |
---|
350 | <inbodydescription> |
---|
351 | </inbodydescription> |
---|
352 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="19"/> |
---|
353 | </memberdef> |
---|
354 | <memberdef kind="function" id="ill__polyfit_8m_197fc40d7f47d5d8f8f83408349ef906d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
355 | <type></type> |
---|
356 | <definition>subplot</definition> |
---|
357 | <argsstring>(2, 2, ind)</argsstring> |
---|
358 | <name>subplot</name> |
---|
359 | <param> |
---|
360 | <type>2</type> |
---|
361 | </param> |
---|
362 | <param> |
---|
363 | <type>2</type> |
---|
364 | </param> |
---|
365 | <param> |
---|
366 | <type>ind</type> |
---|
367 | </param> |
---|
368 | <briefdescription> |
---|
369 | </briefdescription> |
---|
370 | <detaileddescription> |
---|
371 | </detaileddescription> |
---|
372 | <inbodydescription> |
---|
373 | </inbodydescription> |
---|
374 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="25"/> |
---|
375 | </memberdef> |
---|
376 | <memberdef kind="function" id="ill__polyfit_8m_1fa5ab1a498a3648493f522c5f851fd45" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
377 | <type></type> |
---|
378 | <definition>plot</definition> |
---|
379 | <argsstring>(xP, Yn)</argsstring> |
---|
380 | <name>plot</name> |
---|
381 | <param> |
---|
382 | <type>xP</type> |
---|
383 | </param> |
---|
384 | <param> |
---|
385 | <type>Yn</type> |
---|
386 | </param> |
---|
387 | <briefdescription> |
---|
388 | </briefdescription> |
---|
389 | <detaileddescription> |
---|
390 | </detaileddescription> |
---|
391 | <inbodydescription> |
---|
392 | </inbodydescription> |
---|
393 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="30"/> |
---|
394 | </memberdef> |
---|
395 | <memberdef kind="function" id="ill__polyfit_8m_170a49e86fdacb63cecac3f662dfda618" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
396 | <type></type> |
---|
397 | <definition>title</definition> |
---|
398 | <argsstring>(['Order='num2str(n) ', MSE='num2str(devn *devn'/10)])</argsstring> |
---|
399 | <name>title</name> |
---|
400 | <briefdescription> |
---|
401 | </briefdescription> |
---|
402 | <detaileddescription> |
---|
403 | </detaileddescription> |
---|
404 | <inbodydescription> |
---|
405 | </inbodydescription> |
---|
406 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="31"/> |
---|
407 | </memberdef> |
---|
408 | <memberdef kind="function" id="ill__polyfit_8m_1ef55883f7404c2104b7f234057d7755f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
409 | <type></type> |
---|
410 | <definition>eval</definition> |
---|
411 | <argsstring>(['print-depsc2 f'num2str(n)])</argsstring> |
---|
412 | <name>eval</name> |
---|
413 | <briefdescription> |
---|
414 | </briefdescription> |
---|
415 | <detaileddescription> |
---|
416 | </detaileddescription> |
---|
417 | <inbodydescription> |
---|
418 | </inbodydescription> |
---|
419 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="34"/> |
---|
420 | </memberdef> |
---|
421 | <memberdef kind="function" id="ill__polyfit_8m_1cbf1f5c6a1c4d65d80b1494bce593147" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
422 | <type>close all</type> |
---|
423 | <definition>close all mse</definition> |
---|
424 | <argsstring>(n)</argsstring> |
---|
425 | <name>mse</name> |
---|
426 | <param> |
---|
427 | <type>n</type> |
---|
428 | </param> |
---|
429 | <briefdescription> |
---|
430 | </briefdescription> |
---|
431 | <detaileddescription> |
---|
432 | </detaileddescription> |
---|
433 | <inbodydescription> |
---|
434 | </inbodydescription> |
---|
435 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="36"/> |
---|
436 | </memberdef> |
---|
437 | <memberdef kind="function" id="ill__polyfit_8m_16899fcbf6f1fb9f37c2d2a349022eab0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
438 | <type></type> |
---|
439 | <definition>marll</definition> |
---|
440 | <argsstring>(o)</argsstring> |
---|
441 | <name>marll</name> |
---|
442 | <param> |
---|
443 | <type>o</type> |
---|
444 | </param> |
---|
445 | <briefdescription> |
---|
446 | </briefdescription> |
---|
447 | <detaileddescription> |
---|
448 | </detaileddescription> |
---|
449 | <inbodydescription> |
---|
450 | </inbodydescription> |
---|
451 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="45"/> |
---|
452 | </memberdef> |
---|
453 | <memberdef kind="function" id="ill__polyfit_8m_1f1ddedc14e3a31daf27bc2310616604b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
454 | <type></type> |
---|
455 | <definition>subplot</definition> |
---|
456 | <argsstring>(1, 2, 1)</argsstring> |
---|
457 | <name>subplot</name> |
---|
458 | <param> |
---|
459 | <type>1</type> |
---|
460 | </param> |
---|
461 | <param> |
---|
462 | <type>2</type> |
---|
463 | </param> |
---|
464 | <param> |
---|
465 | <type>1</type> |
---|
466 | </param> |
---|
467 | <briefdescription> |
---|
468 | </briefdescription> |
---|
469 | <detaileddescription> |
---|
470 | </detaileddescription> |
---|
471 | <inbodydescription> |
---|
472 | </inbodydescription> |
---|
473 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="49"/> |
---|
474 | </memberdef> |
---|
475 | <memberdef kind="function" id="ill__polyfit_8m_19c538fa19ebecf0bc310384a73a2ec75" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
476 | <type></type> |
---|
477 | <definition>bar</definition> |
---|
478 | <argsstring>(emar/sum(emar))</argsstring> |
---|
479 | <name>bar</name> |
---|
480 | <param> |
---|
481 | <type>emar/</type> |
---|
482 | <declname>sum</declname> |
---|
483 | <array>emar</array> |
---|
484 | </param> |
---|
485 | <briefdescription> |
---|
486 | </briefdescription> |
---|
487 | <detaileddescription> |
---|
488 | </detaileddescription> |
---|
489 | <inbodydescription> |
---|
490 | </inbodydescription> |
---|
491 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="50"/> |
---|
492 | </memberdef> |
---|
493 | <memberdef kind="function" id="ill__polyfit_8m_119e4afed0ffb25978d1339b266829a80" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
494 | <type></type> |
---|
495 | <definition>title</definition> |
---|
496 | <argsstring>('Probability of the correct order')</argsstring> |
---|
497 | <name>title</name> |
---|
498 | <param> |
---|
499 | <type>'Probability of the correct order'</type> |
---|
500 | </param> |
---|
501 | <briefdescription> |
---|
502 | </briefdescription> |
---|
503 | <detaileddescription> |
---|
504 | </detaileddescription> |
---|
505 | <inbodydescription> |
---|
506 | </inbodydescription> |
---|
507 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="51"/> |
---|
508 | </memberdef> |
---|
509 | <memberdef kind="function" id="ill__polyfit_8m_17c28196c4ed06d30a20eadc14c63406c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
510 | <type></type> |
---|
511 | <definition>subplot</definition> |
---|
512 | <argsstring>(1, 2, 2)</argsstring> |
---|
513 | <name>subplot</name> |
---|
514 | <param> |
---|
515 | <type>1</type> |
---|
516 | </param> |
---|
517 | <param> |
---|
518 | <type>2</type> |
---|
519 | </param> |
---|
520 | <param> |
---|
521 | <type>2</type> |
---|
522 | </param> |
---|
523 | <briefdescription> |
---|
524 | </briefdescription> |
---|
525 | <detaileddescription> |
---|
526 | </detaileddescription> |
---|
527 | <inbodydescription> |
---|
528 | </inbodydescription> |
---|
529 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="53"/> |
---|
530 | </memberdef> |
---|
531 | <memberdef kind="function" id="ill__polyfit_8m_1c65497eb7e9643edd5a0f7ea2bb0b07c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
532 | <type></type> |
---|
533 | <definition>plot</definition> |
---|
534 | <argsstring>(-marll/100)</argsstring> |
---|
535 | <name>plot</name> |
---|
536 | <param> |
---|
537 | <type>-marll/</type> |
---|
538 | <declname>100</declname> |
---|
539 | </param> |
---|
540 | <briefdescription> |
---|
541 | </briefdescription> |
---|
542 | <detaileddescription> |
---|
543 | </detaileddescription> |
---|
544 | <inbodydescription> |
---|
545 | </inbodydescription> |
---|
546 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="54"/> |
---|
547 | </memberdef> |
---|
548 | <memberdef kind="function" id="ill__polyfit_8m_1240d32e764cf8b4b7ad177942c9d49aa" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
549 | <type>hold on</type> |
---|
550 | <definition>hold on plot</definition> |
---|
551 | <argsstring>(1:5, mse *10,'r')</argsstring> |
---|
552 | <name>plot</name> |
---|
553 | <param> |
---|
554 | <type>1:5</type> |
---|
555 | </param> |
---|
556 | <param> |
---|
557 | <type>mse *</type> |
---|
558 | <declname>10</declname> |
---|
559 | </param> |
---|
560 | <param> |
---|
561 | <type>'r'</type> |
---|
562 | </param> |
---|
563 | <briefdescription> |
---|
564 | </briefdescription> |
---|
565 | <detaileddescription> |
---|
566 | </detaileddescription> |
---|
567 | <inbodydescription> |
---|
568 | </inbodydescription> |
---|
569 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="56"/> |
---|
570 | </memberdef> |
---|
571 | <memberdef kind="function" id="ill__polyfit_8m_1e5bd8b4b126318591db608896de78fe5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
---|
572 | <type></type> |
---|
573 | <definition>title</definition> |
---|
574 | <argsstring>('Bayes factor and MSE') set(gcf</argsstring> |
---|
575 | <name>title</name> |
---|
576 | <param> |
---|
577 | <type>'Bayes factor and MSE'</type> |
---|
578 | </param> |
---|
579 | <briefdescription> |
---|
580 | </briefdescription> |
---|
581 | <detaileddescription> |
---|
582 | </detaileddescription> |
---|
583 | <inbodydescription> |
---|
584 | </inbodydescription> |
---|
585 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="59"/> |
---|
586 | </memberdef> |
---|
587 | </sectiondef> |
---|
588 | <briefdescription> |
---|
589 | </briefdescription> |
---|
590 | <detaileddescription> |
---|
591 | </detaileddescription> |
---|
592 | <programlisting> |
---|
593 | <codeline lineno="1"><highlight class="normal">%<sp/>Test<sp/>example<sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>polynomial<sp/>regression</highlight></codeline> |
---|
594 | <codeline lineno="2"><highlight class="normal">x<sp/>=<sp/>0.1:0.1:1;</highlight></codeline> |
---|
595 | <codeline lineno="3"><highlight class="normal">Data<sp/>=<sp/>x.^3<sp/>-<sp/>0.1*x<sp/><sp/>+<sp/>1;</highlight></codeline> |
---|
596 | <codeline lineno="4"><highlight class="normal">%DataC<sp/>=<sp/>Data+0.02*randn(1,10);</highlight></codeline> |
---|
597 | <codeline lineno="5"><highlight class="normal"></highlight></codeline> |
---|
598 | <codeline lineno="6"><highlight class="normal">xP<sp/>=<sp/>0:0.01:1.2;</highlight></codeline> |
---|
599 | <codeline lineno="7"><highlight class="normal"></highlight></codeline> |
---|
600 | <codeline lineno="8"><highlight class="normal">close<sp/>all</highlight></codeline> |
---|
601 | <codeline lineno="9"><highlight class="normal">figure(1);</highlight></codeline> |
---|
602 | <codeline lineno="10"><highlight class="normal">%subplot(2,2,1);</highlight></codeline> |
---|
603 | <codeline lineno="11"><highlight class="normal">plot(x,DataC,</highlight><highlight class="charliteral">'+'</highlight><highlight class="normal">);</highlight></codeline> |
---|
604 | <codeline lineno="12"><highlight class="normal"></highlight><highlight class="keyword">set</highlight><highlight class="normal">(gca,</highlight><highlight class="stringliteral">'XLim'</highlight><highlight class="normal">,);</highlight></codeline> |
---|
605 | <codeline lineno="13"><highlight class="normal">title(</highlight><highlight class="stringliteral">'y=x^3-0.1x+1<sp/>+<sp/>0.1<sp/>N(0,1)'</highlight><highlight class="normal">);</highlight></codeline> |
---|
606 | <codeline lineno="14"><highlight class="normal"></highlight><highlight class="keyword">set</highlight><highlight class="normal">(gcf,</highlight><highlight class="stringliteral">'Position'</highlight><highlight class="normal">,);</highlight></codeline> |
---|
607 | <codeline lineno="15"><highlight class="normal"></highlight><highlight class="keyword">set</highlight><highlight class="normal">(gcf,</highlight><highlight class="stringliteral">'PaperPositionMode'</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">'auto'</highlight><highlight class="normal">);</highlight></codeline> |
---|
608 | <codeline lineno="16"><highlight class="normal">print<sp/>-depsc2<sp/>f0</highlight></codeline> |
---|
609 | <codeline lineno="17"><highlight class="normal"></highlight></codeline> |
---|
610 | <codeline lineno="18"><highlight class="normal"></highlight></codeline> |
---|
611 | <codeline lineno="19"><highlight class="normal">ind<sp/>=<sp/>2;</highlight></codeline> |
---|
612 | <codeline lineno="20"><highlight class="normal"></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>n=1:5</highlight></codeline> |
---|
613 | <codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Pn<sp/>=<sp/>polyfit(x,DataC,n);</highlight></codeline> |
---|
614 | <codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>devn<sp/>=<sp/>DataC-polyval(Pn,x);</highlight></codeline> |
---|
615 | <codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Yn<sp/>=<sp/>polyval(Pn,xP);</highlight></codeline> |
---|
616 | <codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline> |
---|
617 | <codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>%<sp/><sp/><sp/><sp/><sp/><sp/><sp/>subplot(2,2,ind);</highlight></codeline> |
---|
618 | <codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>figure</highlight></codeline> |
---|
619 | <codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ind<sp/>=<sp/>ind+1;</highlight></codeline> |
---|
620 | <codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>plot(x,DataC,</highlight><highlight class="charliteral">'+'</highlight><highlight class="normal">);</highlight></codeline> |
---|
621 | <codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hold<sp/>on;</highlight></codeline> |
---|
622 | <codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>plot(xP,Yn);</highlight></codeline> |
---|
623 | <codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>title([</highlight><highlight class="stringliteral">'Order='</highlight><highlight class="normal"><sp/>num2str(n)<sp/></highlight><highlight class="stringliteral">',<sp/>MSE='</highlight><highlight class="normal"><sp/>num2str(devn*devn</highlight><highlight class="stringliteral">'/10)]);</highlight></codeline> |
---|
624 | <codeline lineno="32"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>set(gcf,'</highlight><highlight class="normal">Position</highlight><highlight class="stringliteral">',[100<sp/>100<sp/>350<sp/>250]);</highlight></codeline> |
---|
625 | <codeline lineno="33"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>set(gcf,'</highlight><highlight class="normal">PaperPositionMode</highlight><highlight class="charliteral">','</highlight><highlight class="keyword">auto</highlight><highlight class="stringliteral">');</highlight></codeline> |
---|
626 | <codeline lineno="34"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>eval(['</highlight><highlight class="normal">print<sp/>-depsc2<sp/>f</highlight><highlight class="stringliteral">'<sp/>num2str(n)]);</highlight></codeline> |
---|
627 | <codeline lineno="35"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>close<sp/>all</highlight></codeline> |
---|
628 | <codeline lineno="36"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mse(n)<sp/>=<sp/>devn*devn'</highlight><highlight class="normal">/10;</highlight></codeline> |
---|
629 | <codeline lineno="37"><highlight class="normal">end</highlight></codeline> |
---|
630 | <codeline lineno="38"><highlight class="normal"></highlight></codeline> |
---|
631 | <codeline lineno="39"><highlight class="normal"></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>o=1:5</highlight></codeline> |
---|
632 | <codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>D<sp/>=<sp/>DataC;</highlight></codeline> |
---|
633 | <codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>n=1:o</highlight></codeline> |
---|
634 | <codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>D<sp/>=<sp/>[D;<sp/>x.^n];</highlight></codeline> |
---|
635 | <codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline> |
---|
636 | <codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[th,tll]=arx([D;ones(size(x))]);</highlight></codeline> |
---|
637 | <codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>marll(o)<sp/>=<sp/>tll;</highlight></codeline> |
---|
638 | <codeline lineno="46"><highlight class="normal">end</highlight></codeline> |
---|
639 | <codeline lineno="47"><highlight class="normal">emar<sp/>=<sp/>exp(marll);</highlight></codeline> |
---|
640 | <codeline lineno="48"><highlight class="normal">figure;</highlight></codeline> |
---|
641 | <codeline lineno="49"><highlight class="normal">subplot(1,2,1);</highlight></codeline> |
---|
642 | <codeline lineno="50"><highlight class="normal">bar(emar/sum(emar));</highlight></codeline> |
---|
643 | <codeline lineno="51"><highlight class="normal">title(</highlight><highlight class="stringliteral">'Probability<sp/>of<sp/>the<sp/>correct<sp/>order'</highlight><highlight class="normal">);</highlight></codeline> |
---|
644 | <codeline lineno="52"><highlight class="normal"></highlight></codeline> |
---|
645 | <codeline lineno="53"><highlight class="normal">subplot(1,2,2);</highlight></codeline> |
---|
646 | <codeline lineno="54"><highlight class="normal">plot(-marll/100);</highlight></codeline> |
---|
647 | <codeline lineno="55"><highlight class="normal">hold<sp/>on</highlight></codeline> |
---|
648 | <codeline lineno="56"><highlight class="normal">plot(1:5,mse*10,</highlight><highlight class="charliteral">'r'</highlight><highlight class="normal">);</highlight></codeline> |
---|
649 | <codeline lineno="57"><highlight class="normal">title(</highlight><highlight class="stringliteral">'Bayes<sp/>factor<sp/>and<sp/>MSE'</highlight><highlight class="normal">)</highlight></codeline> |
---|
650 | <codeline lineno="58"><highlight class="normal"></highlight></codeline> |
---|
651 | <codeline lineno="59"><highlight class="normal">set(gcf,'Position',[100<sp/>100<sp/>600<sp/>250]);</highlight></codeline> |
---|
652 | <codeline lineno="60"><highlight class="normal">set(gcf,'PaperPositionMode','auto');</highlight></codeline> |
---|
653 | <codeline lineno="61"><highlight class="normal"></highlight></codeline> |
---|
654 | <codeline lineno="62"><highlight class="normal">print<sp/>-depsc2<sp/>prob</highlight></codeline> |
---|
655 | </programlisting> |
---|
656 | <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m"/> |
---|
657 | </compounddef> |
---|
658 | </doxygen> |
---|