DCTI

From Citizendium
Revision as of 06:55, 2 September 2012 by imported>Dmitrii Kouznetsov (Load first part)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DCTI is one of realizations of the Discrete Cos transform operator. The name is created in analogy with DCT by Wikipedia [1] and notations by the Numerical recipes in C [2].

DCTI, or Discrete Cos Transform of kind I, is orthogonal transform, that repalces an array of length with elements , to the array with elements

for

Normalized form

The orthonormaized transform can be defined with operator , that acts on array in the following way:

Operator is its own inverse;

Numerical implementation

the C++ numerical implementation of the discrete cos transtorm of First kind consists of 3 files zfour1.cin, zrealft.cin, zcosft1.cin; these files should be loaded to the working directory in order to compile the examples. For the application in wave optics, z_type should be defined as double" or complex(double); however, for other applications, such a type may be defined in other ways too. The name of the functions and sense of the arguments are chosen following notations by the Numerical recipes in C, the call of the transform of array of length has form zcosft1(F-1,N); after such a call, values of the elements of array are replaced with values calculated with the expression (1) above. For , the evaluation requires of order of operations

Approximation of the CosFourier

The CosFourier operator transforms a function of non–negative argument to function in the following way:

For the discrete approximation of this operator, assume some large natural number . Let . Let function be smooth and quickly decay at infinity. Then, the transform of can be approximated as follows:

For , this can be written as follows:

At the transformation, it is assumed, that can be neglected as . In such a way,

  1. http://en.wikipedia.org/wiki/Discrete_cosine_transform
  2. http://88.167.97.19/albums/files/TMTisFree/Documents/Physics/11%20-%20Fourier%20Transform%20Spectral%20Methods.pdf W.H.Press, B.P.Flannery, S.A.Teukolsky, W.T.Vetterling. Numerical Recipes in C. Fast Sine and Cosine transform.