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

Jorge E. ´Sanchez Sanchez hnry2k@hotmail....
Thu Oct 6 11:27:07 CDT 2011


Thanks Warren and Oleksandr,

I was thinking I have version 0.8 but it is 0.7.0, I have to update it then.


Best Regards
Jorge

From: warren.weckesser@enthought.com
Date: Wed, 5 Oct 2011 23:16:48 -0500
To: scipy-user@scipy.org
Subject: Re: [SciPy-User] Can't find Discrete Cosine Transform



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???




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@scipy.org

http://mail.scipy.org/mailman/listinfo/scipy-user





_______________________________________________
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/a274b498/attachment.html 


More information about the SciPy-User mailing list