LTPDA_GAPFILLING fills possible gaps in data. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: LTPDA_GAPFILLING interpolated data between two data segments. This function might be useful for possible gaps or corrupted data. Two different types of interpolating are available: linear and spline, the latter results in a smoother curve between the two data segments. CALL: b = ltpda_spikecleaning(a1, a2, pl) INPUTS: a1 - data segment previous to the gap a2 - data segment posterior to the gap pl - parameter list OUTPUTS: b - data segment containing a1, a2 and the filled data segment, i.e., b=[a1 datare_filled a2]. PARAMETERES: 'method' - method used to interpolate data between a1 and a2. Two options can be used: 'linear' and 'spline'. Default values is 'linear'. 'addnoise' - noise can be added to the interpolated data. This noise is defined as random variable with zero mean and variance equal to the high-frequency noise if a1. 'Yes' adds noise. Default value is 'no'. VERSION: $Id: ltpda_gapfilling.m,v 1.4 2008/08/10 20:24:50 hewitson Exp $ HISTORY: 28-12-2007 J Sanjuan Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 % LTPDA_GAPFILLING fills possible gaps in data. 0002 % 0003 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0004 % 0005 % DESCRIPTION: LTPDA_GAPFILLING interpolated data between two data 0006 % segments. This function might be useful for possible 0007 % gaps or corrupted data. Two different types of 0008 % interpolating are available: linear and spline, the latter 0009 % results in a smoother curve between the two data segments. 0010 % 0011 % CALL: b = ltpda_spikecleaning(a1, a2, pl) 0012 % 0013 % INPUTS: a1 - data segment previous to the gap 0014 % a2 - data segment posterior to the gap 0015 % pl - parameter list 0016 % 0017 % OUTPUTS: b - data segment containing a1, a2 and the filled data 0018 % segment, i.e., b=[a1 datare_filled a2]. 0019 % 0020 % PARAMETERES: 'method' - method used to interpolate data between a1 and a2. 0021 % Two options can be used: 'linear' and 'spline'. 0022 % Default values is 'linear'. 0023 % 'addnoise' - noise can be added to the interpolated data. 0024 % This noise is defined as random variable with 0025 % zero mean and variance equal to the high-frequency 0026 % noise if a1. 'Yes' adds noise. Default value 0027 % is 'no'. 0028 % 0029 % VERSION: $Id: ltpda_gapfilling.m,v 1.4 2008/08/10 20:24:50 hewitson Exp $ 0030 % 0031 % HISTORY: 28-12-2007 J Sanjuan 0032 % Creation 0033 % 0034 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0035 0036 function varargout=ltpda_gapfilling(varargin) 0037 0038 warning('!!! This function is deprecated and will be removed from future versions of LTPDA. Use ao/gapfilling now.'); 0039 0040 % Call ao/gapfilling 0041 bs = gapfilling(varargin{:}); 0042 0043 % set output 0044 varargout{1} = bs; 0045 0046 end