view rDiff/src/locfit/m/locfit_all.m @ 1:08d3a6143873

Deleted selected files
author vipints
date Tue, 08 Oct 2013 06:54:25 -0400
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};