fig11_5.m 472 B

1234567891011121314
  1. % Local Regression and Likelihood, Figure 11.5.
  2. % Author: Catherine Loader
  3. %
  4. % Local Adaptive Smooth - Dopler example.
  5. % Adaptive fitting using Katkovnik (et al) ICI criterion.
  6. %
  7. % NEED: Improve plot - curve is hard to see.
  8. x = (0:2047)'/2047;
  9. m = 20*sqrt(x.*(1-x)) .* sin(2*pi*1.05 ./ (x+0.05));
  10. y = m + normrnd(0,1,2048,1);
  11. fit = locfit(x,y,'pen',1.1,'acri','ici','maxk',500);
  12. figure('Name','fig11_5: local adaptive smooth: dopler example');
  13. lfplot(fit);