Method ao/diff


  DIFF differentiates the data in AO.
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
  DESCRIPTION: DIFF differentiates the data in AO. The result is a data
               series the same length as the input series.
               In case of method 'diff' computes the difference between two samples, in which
               case the resulting time object has the length of the input
               series -1 sample.
  CALL:        bs = diff(a1,a2,a3,...,pl)
               bs = diff(as,pl)
               bs = as.diff(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,
                      containing the differentiated data
 
  Parameters Description
 
  REFERENCES:
  [1] L. Ferraioli, M. Hueller and S. Vitale, Discrete derivative
      estimation in LISA Pathfinder data reduction,
      Class. Quantum Grav. 26 (2009) 094013.
  [2] L. Ferraioli, M. Hueller and S. Vitale, Discrete derivative
      estimation in LISA Pathfinder data reduction
      http://arxiv.org/abs/0903.0324v1
 
  VERSION:     $Id: diff.m,v 1.38 2012/02/08 20:02:01 mauro Exp $
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details
Access public
Defining Class ao
Sealed 0
Static 0

Parameter Description

Default

no description
Key Default Value Options Description
METHOD '2POINT'
  • '2POINT'
  • '3POINT'
  • '5POINT'
  • 'ORDER2'
  • 'ORDER2SMOOTH'
  • 'FILTER'
  • 'FPS'
The method to use. Choose between:
  • '2POINT' - 2 point derivative computed as [y(i+1)-y(i)]./[x(i+1)-x(i)]
  • '3POINT' - 3 point derivative. Compute derivative dx at i as
    [y(i+1)-y(i-1)] / [x(i+1)-x(i-1)]
    For i==1, the output is computed as [y(2)-y(1)]/[x(2)-x(1)].
    The last sample is computed as [y(N)-y(N-1)]/[x(N)-x(N-1)]
  • '5POINT' - 5 point derivative. Compute derivative dx at i as
    [-y(i+2)+8*y(i+1)-8*y(i-1)+y(i-2)] / [3*(x(i+2)-x(i-2))]
    For i==1, the output is computed as [y(2)-y(1)]/[x(2)-x(1)]
    The last sample is computed as [y(N)-y(N-1)]/[x(N)-x(N-1)]
  • 'ORDER2' - Compute derivative using a 2nd order method
  • 'ORDER2SMOOTH' - Compute derivative using a 2nd order method
    with a parabolic fit to 5 consecutive samples
  • 'filter' - applies an IIR filter built from a single pole at the chosen frequency.
    The filter is applied forwards and backwards (filtfilt) to achieve the desired f^2
    response. This only works for time-series AOs.
    For this method, you can specify the pole frequency with an additional parameter 'F0' (see below):
  • 'FPS' - Calculates five points derivative using utils.math.fpsder.
    When calling with this option you may add also the parameters
    'ORDER' (see below) and 'COEFF' (see below)
F0 '1/Nsecs' none The pole frequency for the 'filter' method.
ORDER 'ZERO'
  • 'ZERO'
  • 'FIRST'
  • 'SECOND'
Derivative order.
This applys only to the case where 'METHOD' is set to 'FPS'
COEFF [] none Coefficient used for the derivation.
This applys only to the case where 'METHOD' is set to 'FPS'.
Refer to the fpsder help for further details
back to top back to top

Some information of the method ao/diff are listed below:
Class name ao
Method name diff
Category Signal Processing
CVS Version $Id: diff.m,v 1.38 2012/02/08 20:02:01 mauro Exp $
Min input args 1
Max input args -1
Min output args 1
Max output args -1




©LTP Team