DCTIV
DCT-IV, or Discrete Cosine Transform Type IV, is a linear transform used in signal processing and data compression. For an input sequence x[n], with n = 0 to N−1, the N-point DCT-IV produces coefficients X[k], k = 0 to N−1, defined by
X[k] = sum_{n=0}^{N−1} x[n] cos(π (n + 1/2) k / N).
The corresponding inverse transform uses the same cosine kernel with a scaling factor:
x[n] = (2/N) sum_{k=0}^{N−1} X[k] cos(π (n + 1/2) k / N).
The kernel is symmetric in its indices, since cos(π (n+1/2) k / N) = cos(π (k+1/2) n / N).
DCT-IV is real-valued for real inputs and forms an orthogonal transform under the common forward/inverse pairing,
Relation to other DCTs and implementation
DCT-IV is one of the four standard discrete cosine transform types. It is related to the other
DCT-IV is a building block in more advanced transforms such as the Modified Discrete Cosine Transform