view rDiff/src/locfit/m/locfit_all.m @ 2:233c30f91d66

updated python based GFF parsing module which will handle GTF/GFF/GFF3 file types
author vipints <vipin@cbio.mskcc.org>
date Tue, 08 Oct 2013 07:15:44 -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};