<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6">
  <compounddef id="ill__polyfit_8m" kind="file">
    <compoundname>ill_polyfit.m</compoundname>
      <sectiondef kind="var">
      <memberdef kind="variable" id="ill__polyfit_8m_148a49a8f8836255c3a867c5c5997840d" prot="public" static="no" mutable="no">
        <type>Test example for polynomial regression</type>
        <definition>Test example for polynomial regression x</definition>
        <argsstring></argsstring>
        <name>x</name>
        <initializer> 0.1:0.1:1</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1f5baa506e65b4caa6be6d1c6661dfe63" prot="public" static="no" mutable="no">
        <type></type>
        <definition>Data</definition>
        <argsstring></argsstring>
        <name>Data</name>
        <initializer> x.^3 - 0.1*x  + 1</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1cb91a2ef664f30e00d2a2b60b7b1d329" prot="public" static="no" mutable="no">
        <type></type>
        <definition>DataC</definition>
        <argsstring></argsstring>
        <name>DataC</name>
        <initializer> Data+0.02*randn(1,10)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1042f973e6f7d952f579a2bc5dc1f9d8c" prot="public" static="no" mutable="no">
        <type></type>
        <definition>xP</definition>
        <argsstring></argsstring>
        <name>xP</name>
        <initializer> 0:0.01:1.2</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1a52645c0ee282a748dee9b026b638478" prot="public" static="no" mutable="no">
        <type>for</type>
        <definition>x n</definition>
        <argsstring></argsstring>
        <name>n</name>
        <initializer>1:5
	Pn = polyfit(x,DataC,n)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1ab36a85ea13a53d069f8e5050bfe0678" prot="public" static="no" mutable="no">
        <type></type>
        <definition>devn</definition>
        <argsstring></argsstring>
        <name>devn</name>
        <initializer> DataC-polyval(Pn,x)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_196dbaf91095e26fe73d731f911f2cd48" prot="public" static="no" mutable="no">
        <type></type>
        <definition>Yn</definition>
        <argsstring></argsstring>
        <name>Yn</name>
        <initializer> polyval(Pn,xP)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1123b845589fd868f506b014c94ee7df7" prot="public" static="no" mutable="no">
        <type>figure</type>
        <definition>figure ind</definition>
        <argsstring></argsstring>
        <name>ind</name>
        <initializer> ind+1</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_158ab1fd68e97078232808206b850161b" prot="public" static="no" mutable="no">
        <type>hold</type>
        <definition>hold on</definition>
        <argsstring></argsstring>
        <name>on</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1b0f0b64976a0ab81199ee6b740020156" prot="public" static="no" mutable="no">
        <type>end for</type>
        <definition>end for o</definition>
        <argsstring></argsstring>
        <name>o</name>
        <initializer>1:5
	D = DataC</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_11ab224c10c942431adb9c9dd29acb067" prot="public" static="no" mutable="no">
        <type></type>
        <definition>end[th, tll]</definition>
        <argsstring>[th, tll]</argsstring>
        <name>end</name>
        <initializer>arx([D;ones(size(x))])</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1d686f91c7cfdf14667846b383d0ab540" prot="public" static="no" mutable="no">
        <type>end</type>
        <definition>end emar</definition>
        <argsstring></argsstring>
        <name>emar</name>
        <initializer> exp(marll)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1391e34f2de441d79152a7b3d6e4c9c86" prot="public" static="no" mutable="no">
        <type></type>
        <definition>figure</definition>
        <argsstring></argsstring>
        <name>figure</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      <memberdef kind="variable" id="ill__polyfit_8m_1b91b34ae619fcdfcba4522b4f335bf83" prot="public" static="no" mutable="no">
        <type></type>
        <definition>Position</definition>
        <argsstring></argsstring>
        <name>Position</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <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"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="ill__polyfit_8m_1d847cfb7fab5e63a0628752c61532240" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>close all</type>
        <definition>close all figure</definition>
        <argsstring>(1)</argsstring>
        <name>figure</name>
        <param>
          <type>1</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="9"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1ab12de0a32a5e49fd31c109964c48ba5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>subplot</definition>
        <argsstring>(2, 2, 1)</argsstring>
        <name>subplot</name>
        <param>
          <type>2</type>
        </param>
        <param>
          <type>2</type>
        </param>
        <param>
          <type>1</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="10"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1c80e87e51877d050827340fba464fde8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>plot</definition>
        <argsstring>(x, DataC,&apos;+&apos;)</argsstring>
        <name>plot</name>
        <param>
          <type>x</type>
        </param>
        <param>
          <type>DataC</type>
        </param>
        <param>
          <type>&apos;+&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="11"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1381ae41961f9742724dec9f6167d4743" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>set</definition>
        <argsstring>(gca,&apos;XLim&apos;,[0, 1.4])</argsstring>
        <name>set</name>
        <param>
          <type>gca</type>
        </param>
        <param>
          <type>&apos;XLim&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="12"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1f816983c15d2a9c7aa11b03c1a869448" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>title</definition>
        <argsstring>(&apos;y=x^3-0.1x+1+0.1 N(0, 1)&apos;)</argsstring>
        <name>title</name>
        <param>
          <type>&apos;</type>
          <declname>y</declname>
          <defval>x^3-0.1x+1+0.1 N(0, 1)&apos;</defval>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="13"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1f0572a73390c559c115922b168b58ea1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>set</definition>
        <argsstring>(gcf,&apos;Position&apos;,[100 100 350 250])</argsstring>
        <name>set</name>
        <param>
          <type>gcf</type>
        </param>
        <param>
          <type>&apos;Position&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="14"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1a31ca403c5d9830bfec8020f97b49f29" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>set</definition>
        <argsstring>(gcf,&apos;PaperPositionMode&apos;,&apos;auto&apos;)</argsstring>
        <name>set</name>
        <param>
          <type>gcf</type>
        </param>
        <param>
          <type>&apos;PaperPositionMode&apos;</type>
        </param>
        <param>
          <type>&apos;auto&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="15"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1803012524d656815ab8a2fc52c72e6da" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual">
        <type>id</type>
        <definition>id ind</definition>
        <argsstring>()</argsstring>
        <name>ind</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="19"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_197fc40d7f47d5d8f8f83408349ef906d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>subplot</definition>
        <argsstring>(2, 2, ind)</argsstring>
        <name>subplot</name>
        <param>
          <type>2</type>
        </param>
        <param>
          <type>2</type>
        </param>
        <param>
          <type>ind</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="25"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1fa5ab1a498a3648493f522c5f851fd45" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>plot</definition>
        <argsstring>(xP, Yn)</argsstring>
        <name>plot</name>
        <param>
          <type>xP</type>
        </param>
        <param>
          <type>Yn</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="30"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_170a49e86fdacb63cecac3f662dfda618" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>title</definition>
        <argsstring>([&apos;Order=&apos;num2str(n) &apos;, MSE=&apos;num2str(devn *devn&apos;/10)])</argsstring>
        <name>title</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="31"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1ef55883f7404c2104b7f234057d7755f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>eval</definition>
        <argsstring>([&apos;print-depsc2 f&apos;num2str(n)])</argsstring>
        <name>eval</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="34"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1cbf1f5c6a1c4d65d80b1494bce593147" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>close all</type>
        <definition>close all mse</definition>
        <argsstring>(n)</argsstring>
        <name>mse</name>
        <param>
          <type>n</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="36"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_16899fcbf6f1fb9f37c2d2a349022eab0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>marll</definition>
        <argsstring>(o)</argsstring>
        <name>marll</name>
        <param>
          <type>o</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="45"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1f1ddedc14e3a31daf27bc2310616604b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>subplot</definition>
        <argsstring>(1, 2, 1)</argsstring>
        <name>subplot</name>
        <param>
          <type>1</type>
        </param>
        <param>
          <type>2</type>
        </param>
        <param>
          <type>1</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="49"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_19c538fa19ebecf0bc310384a73a2ec75" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>bar</definition>
        <argsstring>(emar/sum(emar))</argsstring>
        <name>bar</name>
        <param>
          <type>emar/</type>
          <declname>sum</declname>
          <array>emar</array>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="50"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_119e4afed0ffb25978d1339b266829a80" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>title</definition>
        <argsstring>(&apos;Probability of the correct order&apos;)</argsstring>
        <name>title</name>
        <param>
          <type>&apos;Probability of the correct order&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="51"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_17c28196c4ed06d30a20eadc14c63406c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>subplot</definition>
        <argsstring>(1, 2, 2)</argsstring>
        <name>subplot</name>
        <param>
          <type>1</type>
        </param>
        <param>
          <type>2</type>
        </param>
        <param>
          <type>2</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="53"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1c65497eb7e9643edd5a0f7ea2bb0b07c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>plot</definition>
        <argsstring>(-marll/100)</argsstring>
        <name>plot</name>
        <param>
          <type>-marll/</type>
          <declname>100</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="54"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1240d32e764cf8b4b7ad177942c9d49aa" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>hold on</type>
        <definition>hold on plot</definition>
        <argsstring>(1:5, mse *10,&apos;r&apos;)</argsstring>
        <name>plot</name>
        <param>
          <type>1:5</type>
        </param>
        <param>
          <type>mse *</type>
          <declname>10</declname>
        </param>
        <param>
          <type>&apos;r&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="56"/>
      </memberdef>
      <memberdef kind="function" id="ill__polyfit_8m_1e5bd8b4b126318591db608896de78fe5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>title</definition>
        <argsstring>(&apos;Bayes factor and MSE&apos;) set(gcf</argsstring>
        <name>title</name>
        <param>
          <type>&apos;Bayes factor and MSE&apos;</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m" line="59"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<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>
<codeline lineno="2"><highlight class="normal">x<sp/>=<sp/>0.1:0.1:1;</highlight></codeline>
<codeline lineno="3"><highlight class="normal">Data<sp/>=<sp/>x.^3<sp/>-<sp/>0.1*x<sp/><sp/>+<sp/>1;</highlight></codeline>
<codeline lineno="4"><highlight class="normal">%DataC<sp/>=<sp/>Data+0.02*randn(1,10);</highlight></codeline>
<codeline lineno="5"><highlight class="normal"></highlight></codeline>
<codeline lineno="6"><highlight class="normal">xP<sp/>=<sp/>0:0.01:1.2;</highlight></codeline>
<codeline lineno="7"><highlight class="normal"></highlight></codeline>
<codeline lineno="8"><highlight class="normal">close<sp/>all</highlight></codeline>
<codeline lineno="9"><highlight class="normal">figure(1);</highlight></codeline>
<codeline lineno="10"><highlight class="normal">%subplot(2,2,1);</highlight></codeline>
<codeline lineno="11"><highlight class="normal">plot(x,DataC,</highlight><highlight class="charliteral">&apos;+&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="12"><highlight class="normal"></highlight><highlight class="keyword">set</highlight><highlight class="normal">(gca,</highlight><highlight class="stringliteral">&apos;XLim&apos;</highlight><highlight class="normal">,);</highlight></codeline>
<codeline lineno="13"><highlight class="normal">title(</highlight><highlight class="stringliteral">&apos;y=x^3-0.1x+1<sp/>+<sp/>0.1<sp/>N(0,1)&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="14"><highlight class="normal"></highlight><highlight class="keyword">set</highlight><highlight class="normal">(gcf,</highlight><highlight class="stringliteral">&apos;Position&apos;</highlight><highlight class="normal">,);</highlight></codeline>
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="keyword">set</highlight><highlight class="normal">(gcf,</highlight><highlight class="stringliteral">&apos;PaperPositionMode&apos;</highlight><highlight class="normal">,</highlight><highlight class="stringliteral">&apos;auto&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="16"><highlight class="normal">print<sp/>-depsc2<sp/>f0</highlight></codeline>
<codeline lineno="17"><highlight class="normal"></highlight></codeline>
<codeline lineno="18"><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal">ind<sp/>=<sp/>2;</highlight></codeline>
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>n=1:5</highlight></codeline>
<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Pn<sp/>=<sp/>polyfit(x,DataC,n);</highlight></codeline>
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>devn<sp/>=<sp/>DataC-polyval(Pn,x);</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Yn<sp/>=<sp/>polyval(Pn,xP);</highlight></codeline>
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<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>
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>figure</highlight></codeline>
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ind<sp/>=<sp/>ind+1;</highlight></codeline>
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>plot(x,DataC,</highlight><highlight class="charliteral">&apos;+&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hold<sp/>on;</highlight></codeline>
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>plot(xP,Yn);</highlight></codeline>
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>title([</highlight><highlight class="stringliteral">&apos;Order=&apos;</highlight><highlight class="normal"><sp/>num2str(n)<sp/></highlight><highlight class="stringliteral">&apos;,<sp/>MSE=&apos;</highlight><highlight class="normal"><sp/>num2str(devn*devn</highlight><highlight class="stringliteral">&apos;/10)]);</highlight></codeline>
<codeline lineno="32"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>set(gcf,&apos;</highlight><highlight class="normal">Position</highlight><highlight class="stringliteral">&apos;,[100<sp/>100<sp/>350<sp/>250]);</highlight></codeline>
<codeline lineno="33"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>set(gcf,&apos;</highlight><highlight class="normal">PaperPositionMode</highlight><highlight class="charliteral">&apos;,&apos;</highlight><highlight class="keyword">auto</highlight><highlight class="stringliteral">&apos;);</highlight></codeline>
<codeline lineno="34"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>eval([&apos;</highlight><highlight class="normal">print<sp/>-depsc2<sp/>f</highlight><highlight class="stringliteral">&apos;<sp/>num2str(n)]);</highlight></codeline>
<codeline lineno="35"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>close<sp/>all</highlight></codeline>
<codeline lineno="36"><highlight class="stringliteral"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>mse(n)<sp/>=<sp/>devn*devn&apos;</highlight><highlight class="normal">/10;</highlight></codeline>
<codeline lineno="37"><highlight class="normal">end</highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>o=1:5</highlight></codeline>
<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>D<sp/>=<sp/>DataC;</highlight></codeline>
<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>
<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>
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>end</highlight></codeline>
<codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[th,tll]=arx([D;ones(size(x))]);</highlight></codeline>
<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>marll(o)<sp/>=<sp/>tll;</highlight></codeline>
<codeline lineno="46"><highlight class="normal">end</highlight></codeline>
<codeline lineno="47"><highlight class="normal">emar<sp/>=<sp/>exp(marll);</highlight></codeline>
<codeline lineno="48"><highlight class="normal">figure;</highlight></codeline>
<codeline lineno="49"><highlight class="normal">subplot(1,2,1);</highlight></codeline>
<codeline lineno="50"><highlight class="normal">bar(emar/sum(emar));</highlight></codeline>
<codeline lineno="51"><highlight class="normal">title(</highlight><highlight class="stringliteral">&apos;Probability<sp/>of<sp/>the<sp/>correct<sp/>order&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="52"><highlight class="normal"></highlight></codeline>
<codeline lineno="53"><highlight class="normal">subplot(1,2,2);</highlight></codeline>
<codeline lineno="54"><highlight class="normal">plot(-marll/100);</highlight></codeline>
<codeline lineno="55"><highlight class="normal">hold<sp/>on</highlight></codeline>
<codeline lineno="56"><highlight class="normal">plot(1:5,mse*10,</highlight><highlight class="charliteral">&apos;r&apos;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="57"><highlight class="normal">title(</highlight><highlight class="stringliteral">&apos;Bayes<sp/>factor<sp/>and<sp/>MSE&apos;</highlight><highlight class="normal">)</highlight></codeline>
<codeline lineno="58"><highlight class="normal"></highlight></codeline>
<codeline lineno="59"><highlight class="normal">set(gcf,&apos;Position&apos;,[100<sp/>100<sp/>600<sp/>250]);</highlight></codeline>
<codeline lineno="60"><highlight class="normal">set(gcf,&apos;PaperPositionMode&apos;,&apos;auto&apos;);</highlight></codeline>
<codeline lineno="61"><highlight class="normal"></highlight></codeline>
<codeline lineno="62"><highlight class="normal">print<sp/>-depsc2<sp/>prob</highlight></codeline>
    </programlisting>
    <location file="/home/smidl/work/git/mixpp/matlab/mex/ill_polyfit.m"/>
  </compounddef>
</doxygen>
