[SciPy-User] Can't find Discrete Cosine Transform
Warren Weckesser
warren.weckesser at enthought.com
Thu Oct 6 00:16:48 EDT 2011
2011/10/5 Jorge E. ´Sanchez Sanchez <hnry2k at hotmail.com>
> Need some help,
>
> I'm trying to get the Discrete Cosine Transform of a sequence S_m,
> according to
>
> http://docs.scipy.org/doc/scipy/reference/fftpack.html#module-scipy.fftpack
>
> it is defined as "dct" in the scipy.fftpack module, however when I try to
> use it after:
>
> from scipy import fftpack
>
> it does not offer me that option (just these others: cc_diff, cs_diff,
> diff, fft, fft2,
> fftn, hilbert, ifft, ifft2, ifftn, ihilbert, irfft, itilbert, rfft,
> rfftfreq, sc_diff, shift, ssdiff and
> tilbert).
>
> Trying it, gives me the error message:
>
> Traceback (most recent call last):
> File "/home/george/Escritorio/prueba1D05Oct2011.py", line 78, in <module>
> FCTS_m = fftpack.dct(S_m,norm='ortho')
> AttributeError: 'module' object has no attribute 'dct'
>
> as expected.
>
> What I have to do to make it work???
>
dct was added to scipy in version 0.8:
http://docs.scipy.org/doc/scipy/reference/release.0.8.0.html
What version are you using?
Warren
> Thanks in Advance
> Jorge
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20111005/022ff628/attachment.html>
More information about the SciPy-User
mailing list