fig6_7.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/REC-html40/loose.dtd">
  3. <html>
  4. <head>
  5. <title>Description of fig6_7</title>
  6. <meta name="keywords" content="fig6_7">
  7. <meta name="description" content="Local Regression and Likelihood, Figure 6.6.">
  8. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  9. <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  10. <meta name="robots" content="index, follow">
  11. <link type="text/css" rel="stylesheet" href="../../../m2html.css">
  12. <script type="text/javascript">
  13. if (top.frames.length == 0) { top.location = "../../../index.html"; };
  14. </script>
  15. </head>
  16. <body>
  17. <a name="_top"></a>
  18. <!-- ../../menu.html chronux_2_10 --><!-- # locfit --><!-- menu.html Book -->
  19. <h1>fig6_7
  20. </h1>
  21. <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
  22. <div class="box"><strong>Local Regression and Likelihood, Figure 6.6.</strong></div>
  23. <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
  24. <div class="box"><strong>This is a script file. </strong></div>
  25. <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
  26. <div class="fragment"><pre class="comment"> Local Regression and Likelihood, Figure 6.6.
  27. Author: Catherine Loader
  28. Penny data, piecewise smoothing.</pre></div>
  29. <!-- crossreference -->
  30. <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
  31. This function calls:
  32. <ul style="list-style-image:url(../../../matlabicon.gif)">
  33. <li><a href="../../../chronux_2_10/locfit/m/lfplot.html" class="code" title="function lfplot(varargin)">lfplot</a> Plot (for one or two dimensions) a locfit() fit.</li><li><a href="../../../chronux_2_10/locfit/m/locfit.html" class="code" title="function fit=locfit(varargin)">locfit</a> Smoothing noisy data using Local Regression and Likelihood.</li></ul>
  34. This function is called by:
  35. <ul style="list-style-image:url(../../../matlabicon.gif)">
  36. <li><a href="runbook.html" class="code" title="">runbook</a> </li></ul>
  37. <!-- crossreference -->
  38. <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
  39. <div class="fragment"><pre>0001 <span class="comment">% Local Regression and Likelihood, Figure 6.6.</span>
  40. 0002 <span class="comment">% Author: Catherine Loader</span>
  41. 0003 <span class="comment">%</span>
  42. 0004 <span class="comment">% Penny data, piecewise smoothing.</span>
  43. 0005 <span class="comment">%</span>
  44. 0006
  45. 0007 load penny;
  46. 0008 u = find(year &lt;= 1958);
  47. 0009 fit1 = <a href="../../../chronux_2_10/locfit/m/locfit.html" class="code" title="function fit=locfit(varargin)">locfit</a>(year(u),thickness(u),<span class="string">'alpha'</span>,[0 10],<span class="string">'deg'</span>,1);
  48. 0010 u = find((year&gt;1958) &amp; (year &lt;= 1974));
  49. 0011 fit2 = <a href="../../../chronux_2_10/locfit/m/locfit.html" class="code" title="function fit=locfit(varargin)">locfit</a>(year(u),thickness(u),<span class="string">'alpha'</span>,[0 10],<span class="string">'deg'</span>,1);
  50. 0012 u = find(year &gt; 1974);
  51. 0013 fit3 = <a href="../../../chronux_2_10/locfit/m/locfit.html" class="code" title="function fit=locfit(varargin)">locfit</a>(year(u),thickness(u),<span class="string">'alpha'</span>,[0 10],<span class="string">'deg'</span>,1);
  52. 0014 figure(<span class="string">'Name'</span>,<span class="string">'fig6_7: Piecewise smoothing of penny data'</span> );
  53. 0015 <a href="../../../chronux_2_10/locfit/m/lfplot.html" class="code" title="function lfplot(varargin)">lfplot</a>(fit1);
  54. 0016 hold on;
  55. 0017 <a href="../../../chronux_2_10/locfit/m/lfplot.html" class="code" title="function lfplot(varargin)">lfplot</a>(fit2);
  56. 0018 hold on;
  57. 0019 <a href="../../../chronux_2_10/locfit/m/lfplot.html" class="code" title="function lfplot(varargin)">lfplot</a>(fit3);</pre></div>
  58. <hr><address>Generated on Fri 12-Aug-2011 11:36:15 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
  59. </body>
  60. </html>