powered by
https://en.wikipedia.org/wiki/Discrete_cosine_transform "DCT II"
dct_bases(T_, n)
Matrix with cosine bases along columns
Length of timeseries
Number of cosine bases