Method ao/fixfs


  FIXFS resamples the input time-series to have a fixed sample rate.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  FIXFS resamples the input time-series to have a fixed sample rate.
 
  The new sampling grid is computed from the specified sample rate. If no
  sample rate is specified, the target is taken from a fit to the input tsdata
  object. The new sampling grid starts at the time returned from the fit
  (unless specified) and contains the same number of points or spans the
  same time as specified.
 
  CALL:        bs = fixfs(a1,a2,a3,...,pl)
               bs = fixfs(as,pl)
               bs = as.fixfs(pl)
 
  INPUTS:      aN   - input analysis objects
               as   - input analysis objects array
               pl   - input parameter list
 
  OUTPUTS:     bs   - array of analysis objects, one for each input
 
  Parameters Description
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class ao
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
fixfs
FS [] none The target sampling frequency.
METHOD 'time'
  • 'time'
  • 'samples'
Choose if the new data should span the same time or preserve the number of samples (time/samples)
FILTER 'off'
  • 'iir'
  • 'fir'
  • 'off'
Specify options for the antialiasing filter.
INTERPOLATION 'auto'
  • 'auto'
  • 'nearest'
  • 'linear'
  • 'spline'
  • 'pchip'
  • 'v5cubic'
Specify the interpolation method. Choose between:
  • auto - use a method according to the data type. Spline for double/single, nearest for all other types.
    • nearest - nearest neighbor interpolation
    • linear - linear interpolation
    • spline - piecewise cubic spline interpolation (SPLINE)
    • pchip - shape-preserving piecewise cubic interpolation
    • v5cubic - the cubic interpolation from MATLAB 5, which does not extrapolate and uses 'spline' if X is not equally spaced.

Example

plist('FS', [[]], 'METHOD', 'time', 'FILTER', 'off', 'INTERPOLATION', 'auto')

back to top back to top

Some information of the method ao/fixfs are listed below:
Class name ao
Method name fixfs
Category Signal Processing
Package name ltpda
VCS Version 967b0eec0dece803a81af8ef54ad2f8c784b20b2
Min input args 1
Max input args -1
Min output args 1
Max output args -1
Can be used as modifier 1
Supported numeric types {'double'}




©LTP Team