Method ao/cgfill


  CGFILL fills specified gaps in the data given an inital guess for the spectrum.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: CGFILL fills specified gaps in the data given an
               inital guess for the spectrum using the constrained gaussian
               method. At present, it only fits data described by a
               piecewise power-law spectrum
 
 
  CALL:        out = obj.cgfill(pl)
               out = cgfill(objs, pl)
 
  INPUTS:      pl      - a parameter list
               obj(s)  - input ao object(s)
 
  OUTPUTS:     out - filled data series.
 
 
  Created 2013-02-20, M Hewitson
      - adapted from code writen by Curt Cutler and Ira Thorpe.
 
  Parameters Description
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class ao
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
WIN 'Hanning'
  • 'Rectangular'
  • 'Welch'
  • 'Bartlett'
  • 'Hanning'
  • 'Hamming'
  • 'Nuttall3'
  • 'Nuttall4'
  • 'Nuttall3a'
  • 'Nuttall3b'
  • 'Nuttall4a'
  • 'Nuttall4b'
  • 'Nuttall4c'
  • 'BH92'
  • 'SFT3F'
  • 'SFT3M'
  • 'FTNI'
  • 'SFT4F'
  • 'SFT5F'
  • 'SFT4M'
  • 'FTHP'
  • 'HFT70'
  • 'FTSRS'
  • 'SFT5M'
  • 'HFT90D'
  • 'HFT95'
  • 'HFT116D'
  • 'HFT144D'
  • 'HFT169D'
  • 'HFT196D'
  • 'HFT223D'
  • 'HFT248D'
  • 'Kaiser'
  • 'levelledHanning'
The window to be applied to the data to remove the discontinuities at edges of segments. [default: taken from user prefs]
Only the design parameters of the window object are used. Enter a string value containing the window name e.g.
plist('Win', 'Kaiser', 'psll', 200)
plist('Win', 'BH92')
ORDERS 0 none The powers of the dependent variable to fit to the data.
P0 1 none An initial guess for the power-law coefficients.
OFFSETS [] none offset frequencies of the power-law from DC.
WEIGHTS [] none Weights for individual data bins. If empty, all bins are weighted equally. Can also be a plist for a built-in ao model
INDICES [] none List of start/stop index pairs for data to be subsituted (Nx2). Can either be an array of doubles or a cdata ao
SUB_FLAG [] none Timeseries AO containing ones where data should substituted and zeros where it should be kept. NOTE: This is an alternative to specifying Indices.
SEED [] none Set the set used to initialise the random number generator which generates the random data for the gaps.
SAMPLES [] none The number of samples to truncate the correlation vector to. If empty, the full inverse correlation vector will be returned.
NITER, ITERATIONS 1 none The number of iterations to perform for the 'iterate' mode.
MODE 'iterate' none The method for deciding when to end the filling procedure:
  • iterate - Run the procedure N times then stop
PRE_FILTER [] none Filter applied to data (multiplicaiton) before fitting to correct for non-powerlaw behavior in PSD.Can either be an AO, an array, or a plist for a built-in AO model
SEGLEN [] none Specify the length of segments (in seconds) to fill individually on each iteration. If left empty, the full data will be filled each time. Note: if this parameter is specified, the 'SAMPLES' parameter is ignored and the correlation function is computed for the full length of each individual segment.
OLAP 50 none Target overlap fraction (%). This may be adjusted slightly internally to better fit the segments to the full input data.
X_VAR 'F' none Key value for dependant variable for the case in which PRE_FILTER is a plist for a built-in AO model
DEBUG 0
  • 0
  • 1
Set to true to put additional objects into procinfo
back to top back to top

Some information of the method ao/cgfill are listed below:
Class name ao
Method name cgfill
Category Signal Processing
Package name ltpda
VCS Version 3f8d61c792503a5b5ec8a0a153efb23b65da24a9
Min input args 1
Max input args -1
Min output args 1
Max output args -1




©LTP Team