0
|
1 function out=locfit_all(varargin)
|
|
2
|
|
3 % Smoothing noisy data using Local Regression and Likelihood.
|
|
4 %
|
|
5 % This is a combination of the locfit and predict functions
|
|
6 %
|
|
7
|
|
8 % Minimal input validation
|
|
9 if nargin < 1
|
|
10 error( 'At least one input argument required' );
|
|
11 end
|
|
12
|
|
13 predict_args = {};
|
|
14
|
|
15 locfit_args = varargin{1};
|
|
16
|
|
17 if nargin==2
|
|
18 predict_args = varargin{2};
|
|
19 end;
|
|
20
|
|
21 fit = locfit( locfit_args{:} );
|
|
22
|
|
23 predict_out = predict( fit, predict_args{:} );
|
|
24
|
|
25 out = {fit predict_out};
|