Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Discrete sine transform


 

The discrete sine transform (DST) is a Fourier-related transform similar to the discrete Fourier transform (DFT), but using only real numbers. It is equivalent to the imaginary parts of a DFT of roughly twice the length, operating on real data with odd symmetry (since the Fourier transform of a real and odd function is real and imaginary), where in some variants the input and/or output data are shifted by half a sample.

A related transform is the discrete cosine transform (DCT), which is equivalent to a DFT of real and even functions.

1 Applications

DSTs are widely employed in solving partial differential equations by spectral methods, where the different variants of the DST correspond to slightly different odd/even boundary conditions at the two ends of the array.

2 Definition

Formally, the discrete sine transform is a linear, invertible function F : Rn -> Rn (where R denotes the set of real numbers), or equivalently an n × n square matrix. There are several variants of the DST with slightly modified definitions. The n real numbers x0, ...., xn-1 are transformed into the n real numbers f0, ..., fn-1 according to one of the formulas:

2.1 DST-I

The DST-I matrix is orthogonal (up to a scale factor).

A DST-I of n=3 real numbers abc is exactly equivalent to a DFT of eight real numbers 0abc0(-c)(-b)(-a) (odd symmetry), here divided by two. (In contrast, DST types II-IV involve a half-sample shift in the equivalent DFT.)

Thus, the DST-I corresponds to the boundary conditions: xk is odd around k=-1 and odd around k=n; similarly for fj.

2.2 DST-II

Some authors further multiply the fn-1 term by 1/√2 (see below for the corresponding change in DST-III). This makes the DST-II matrix orthogonal (up to a scale factor), but breaks the direct correspondence with a real-odd DFT of half-shifted input.

The DST-II implies the boundary conditions: xk is odd around k=-1/2 and odd around k=n-1/2; fj is odd around j=-1 and even around j=n-1.

2.3 DST-III

Some authors further multiply the xn-1 term by √2 (see above for the corresponding change in DST-II). This makes the DST-III matrix orthogonal (up to a scale factor), but breaks the direct correspondence with a real-odd DFT of half-shifted output.

The DST-III implies the boundary conditions: xk is odd around k=-1 and even around k=n-1; fj is odd around j=-1/2 and odd around j=n-1/2.

2.4 DST-IV

The DST-IV matrix is orthogonal (up to a scale factor).

The DST-IV implies the boundary conditions: xk is odd around k=-1/2 and even around k=n-1/2; similarly for fj.

2.5 DST V-VIII

DST types I-IV are equivalent to real-odd DFTs of even order. In principle, there are actually four additional types of discrete sine transform (Martucci, 1994), corresponding to real-odd DFTs of logically odd order, which have factors of n+1/2 in the denominators of the sine arguments. However, these variants seem to be rarely used in practice.



Read more »

Non User