dct
Copyright (C) 2005 IENT-RWTH Aachen
template<class G1,class G2> void dct(const Vector<G1> &X, Vector<G2> &Y)
template<class G> PROMOTE2(float,Vector<G>) dct(const Vector<G> &X)
template<class G1,class G2> inline void dct(const Matrix<G1> &X, Matrix<G2> &Y)
template<class G> PROMOTE2(float,Matrix<G>) dct(const Matrix<G> &X)
Discrete Cosine Transform
Parameters
Y | The DCT |
X | A signal |
Returns
Dense array
Example
DenseVector<float>::self X(8, 1); DenseVector<float>::self Y = dct(X); DenseVector<double>::self X(8, 1); dct(X,X); // in place