Mercurial > repos > vipints > rdiff
view rDiff/src/locfit/m/smooth_lf.m @ 3:29a698dc5c7e default tip
Merge multiple heads.
author | Dave Bouvier <dave@bx.psu.edu> |
---|---|
date | Mon, 27 Jan 2014 14:15:36 -0500 |
parents | 0f80a5141704 |
children |
line wrap: on
line source
function z=smooth_lf(x,y,varargin) % must (unlike R smooth.lf() function) give x and y. % also R's direct=T is automatic. % xev = x; if (k>1) if (strcmp(varargin{1},'xev')) xev = varargin{2}; varargin(1:2) = []; end; end; fit = locfit(x,y,varargin{:},'ev',xev,'module','simple'); z = lfknots(fit); fv = invlink(z(:,1),fit.fit_points.family_link); z = { xev, fv }; return;