[SciPy-User] Can't find Discrete Cosine Transform

Oleksandr Huziy guziy.sasha@gmail....
Wed Oct 5 23:09:06 CDT 2011


Works for me with scipy '0.9.0' (python3.2)

>>> fftpack.dct([0.5,0.8,896,0.778])
array([ 1796.156     ,  -685.67009433, -1266.4593578 ,  1653.90114302])

--
Oleksandr Huziy

2011/10/5 Jorge E. ´Sanchez Sanchez <hnry2k@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???
>
> Thanks in Advance
> Jorge
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@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/20111006/1a4ccde5/attachment.html 


More information about the SciPy-User mailing list