Mercurial > repos > vipints > rdiff
view rDiff/src/locfit/m/locfit_all.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 out=locfit_all(varargin) % Smoothing noisy data using Local Regression and Likelihood. % % This is a combination of the locfit and predict functions % % Minimal input validation if nargin < 1 error( 'At least one input argument required' ); end predict_args = {}; locfit_args = varargin{1}; if nargin==2 predict_args = varargin{2}; end; fit = locfit( locfit_args{:} ); predict_out = predict( fit, predict_args{:} ); out = {fit predict_out};