Jetdsp
JETDSP Homepage
Manual Homepage
Signal Processing Homepage
 
Signal processing
Basic guide
Advanced guide
IBM NEWDSP-syntax
Use your code
Signal slicing
Simple expressions
 
Tutorial
Introduction
Internals
IDL commands
Interpolation
Writing your own code
Adding functions to the Simple dialogue
 
How to...
Read data
Define structure
 
Functions
jetSmooth
jetint
jetsubset
jetmerge
fixgrid
jetwindowpoints
 
Signal Processing Main

Integrating a signal.

Four functions have been provided to integrate a signal. These all use the trapezium rule to perform the integration and all require two input arguments. The routines are described in the table below.

FunctionDescriptionSignal Types
JETINT_T(SIGNAL,TIME)Integral of the signal with respect to the first axis (T). Only the total integral is returned. This is performed for each point in the second axis (X) when appropriate. 2D,3D
JETINT_ALLT(SIGNAL,TIME)Integral of the signal with respect to the first axis (T). The integral at each point is returned. This is performed for each point in the second axis (X) when appropriate. 2D,3D
JETINT_X(SIGNAL,X)Integral of the signal with respect to the second axis (X). Only the total integral is returned. This is performed for each point in the first axis (T). 3D
JETINT_ALLX(SIGNAL,X)Integral of the signal with respect to the second axis (X). The integral at each point is returned. This is performed for each point in the first axis (T). 3D

The routines work for signals of all axis types and also for multigraphs.

Example, for a signal defined as 'signal=cos(findgen(4,3))', 'time=findgen(4)+40' and 'x=findgen(3)/10+3' the following results are given

Function Result
JETINT_T(SIGNAL,TIME)
     0.129159      1.29396     -1.82074 
JETINT_ALLT(SIGNAL,TIME)
      0.00000     0.770151     0.832229     0.129159
      0.00000    -0.184991     0.436926      1.29396
      0.00000    -0.528315     -1.40342     -1.82074
JETINT_X(SIGNAL,X)
   -0.0226394   0.00982473    0.0332561    0.0261120
JETINT_ALLX(SIGNAL,X)
      0.00000      0.00000      0.00000      0.00000
    0.0173178    0.0411982    0.0272011   -0.0118045
   -0.0226394   0.00982473    0.0332561    0.0261120

Note care must be taken when using the '_T' and '_X' functions to use the correct 'Time' axis for the result.


Top  JETDSP Home Page  Manual  FAQ 
Please send comments to: data-and-coding-support@ccfe.ac.uk