Home > chronux > locfit > m > locfit_all.m

locfit_all

PURPOSE ^

Smoothing noisy data using Local Regression and Likelihood.

SYNOPSIS ^

function out=locfit_all(varargin)

DESCRIPTION ^

 Smoothing noisy data using Local Regression and Likelihood.

 This is a combination of the locfit and predict functions

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function out=locfit_all(varargin)
0002 
0003 % Smoothing noisy data using Local Regression and Likelihood.
0004 %
0005 % This is a combination of the locfit and predict functions
0006 %
0007 
0008 % Minimal input validation
0009 if nargin < 1
0010    error( 'At least one input argument required' );
0011 end
0012 
0013 predict_args = {};
0014 
0015 locfit_args = varargin{1};
0016 
0017 if nargin==2
0018 predict_args = varargin{2};
0019 end;
0020 
0021 fit = locfit( locfit_args{:} );
0022 
0023 predict_out = predict( fit, predict_args{:} );
0024 
0025 out = {fit predict_out};

Generated on Fri 28-Sep-2012 12:34:30 by m2html © 2005