Method ao/timeshift


  TIMESHIFT for AO/tsdata objects, shifts data in time by the specified value in seconds.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: TIMESHIFT for AO/tsdata objects, shifts data in time by the
               specified value.
 
  This method does no fancy interpolation it just shifts the start time of
  the first sample by the given amount relative to t0.
  
  Providing an empty value for the offset (the default value) results in
  the special behaviour of subtracting the first x value from all the x
  values, such that the x vector starts at 0.
  
  
 
  CALL:        b = timeshift(a, offset)
               bs = timeshift(a1,a2,a3, offset)
               bs = timeshift(a1,a2,a3,...,pl)
               bs = timeshift(as,pl)
               bs = as.timeshift(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
timeshift
OFFSET [] none Offset in seconds to shift the data in time.
ADJUST T0 0
  • 0
  • 1
For the case where offset is zero, adjust t0 accordingly

Example

plist('OFFSET', [[]], 'ADJUST T0', [false])

back to top back to top

Some information of the method ao/timeshift are listed below:
Class name ao
Method name timeshift
Category Helper
Package name ltpda
Can be used as modifier 1
Supported numeric types {'double'}




©LTP Team