Mercurial > repos > vipints > rdiff
comparison rDiff/src/locfit/m/locfit_all.m @ 0:0f80a5141704
version 0.3 uploaded
author | vipints |
---|---|
date | Thu, 14 Feb 2013 23:38:36 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0f80a5141704 |
---|---|
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}; |