fig11_4

PURPOSE ^

Local Regression and Likelihood, Figure 11.4.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Local Regression and Likelihood, Figure 11.4.
 Author: Catherine Loader

 Local Adaptive Smooth - Dopler example.

 NEED: Improve plot - curve is hard to see.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Local Regression and Likelihood, Figure 11.4.
0002 % Author: Catherine Loader
0003 %
0004 % Local Adaptive Smooth - Dopler example.
0005 %
0006 % NEED: Improve plot - curve is hard to see.
0007 
0008 x = (0:2047)'/2047;
0009 m = 20*sqrt(x.*(1-x)) .* sin(2*pi*1.05 ./ (x+0.05));
0010 y = m + normrnd(0,1,2048,1);
0011 fit = locfit(x,y,'pen',4,'acri','cp','maxk',500);
0012 figure('Name','fig11_4: local adaptive smooth: dopler example');
0013 lfplot(fit,'red');

Generated on Fri 12-Aug-2011 11:36:15 by m2html © 2005