TS_DIFF
Syntax | Return Value | Arguments | Keywords | Examples | Version History | See Also
The TS_DIFF function recursively computes the forward differences of an n-element time-series k times. This routine is written in the IDL language. Its source code can be found in the file ts_diff.pro in the lib subdirectory of the IDL distribution.
Syntax
Result = TS_DIFF( X, K [, /DOUBLE] )
Return Value
The result is an n-element differenced time-series with its last k elements as zeros.
Arguments
X
An n-element integer, single- or double-precision floating-point vector containing time-series samples.
K
A positive integer or long integer scalar that specifies the number of times X is to be differenced. K must be in the interval [1, N_ELEMENTS(X) - 1].
Keywords
DOUBLE
Set this keyword to force the computation to be done in double-precision arithmetic.
Examples
IDL prints:
Version History