Skip to main content

idct

Function idct 

Source
pub fn idct(
    signal: &ExactNumArray,
    p: usize,
    rm: RoundingMode,
    cc: &mut Consts,
) -> Option<ExactNumArray>
Expand description

Inverse of dct: type-III DCT scaled by 2/N so idct(dct(x)) = x.

x_n = X_0/N + (2/N) Σ_{k=1}^{N-1} X_k cos(π k (n+1/2)/N).