Skip to main content

idst

Function idst 

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

Inverse of dst: type-III DST scaled by 2/N so idst(dst(x)) = x.

x_n = (2/N)[ (1/2)(−1)^n X_{N−1} + Σ_{k=0}^{N−2} X_k sin(π(k+1)(n+1/2)/N) ].