You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > DCT Method > Vector.DCT Method (TVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.DCT Method (TVec)

Calculates the forward discrete cosine transform (DCT) of the Vec.

Pascal
function DCT(const Vec: TVec): TVec; overload;

Writes the result in the calling vector. If Vec.Length is a power of 2, the function uses an efficient algorithm that is significantly faster than the direct computation of DCT. For other values of Vec Length, this function uses the direct formulas.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!