Generate cosine bases for the DCT
dct_bases(T_, n)
T_
Length of timeseries
n
Number of cosine bases
Matrix with cosine bases along columns